Use printf instead of echo like docker docs do
This commit is contained in:
parent
25fe6808ad
commit
89d530a553
2
abra
2
abra
@ -665,7 +665,7 @@ sub_app_secret_insert() {
|
|||||||
error "Required arguments missing"
|
error "Required arguments missing"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$PW" | docker secret create "${STACK_NAME}_${SECRET}_${VERSION}" - > /dev/null
|
printf "$PW" | docker secret create "${STACK_NAME}_${SECRET}_${VERSION}" - > /dev/null
|
||||||
|
|
||||||
if [ "$STORE_WITH_PASS" == "true" ] && type pass > /dev/null 2>&1; then
|
if [ "$STORE_WITH_PASS" == "true" ] && type pass > /dev/null 2>&1; then
|
||||||
echo "$PW" | pass insert "hosts/$DOCKER_CONTEXT/${STACK_NAME}/${SECRET}" -m > /dev/null
|
echo "$PW" | pass insert "hosts/$DOCKER_CONTEXT/${STACK_NAME}/${SECRET}" -m > /dev/null
|
||||||
|
Reference in New Issue
Block a user