Use printf instead of echo like docker docs do
continuous-integration/drone/push Build is failing Details

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
1 changed files with 1 additions and 1 deletions

2
abra
View File

@ -665,7 +665,7 @@ sub_app_secret_insert() {
error "Required arguments missing"
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
echo "$PW" | pass insert "hosts/$DOCKER_CONTEXT/${STACK_NAME}/${SECRET}" -m > /dev/null