Use printf instead of echo like docker docs do

This commit is contained in:
Luke Murphy 2020-11-08 16:40:45 +01:00
parent 25fe6808ad
commit 89d530a553
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

2
abra
View File

@ -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