Skip to content

Commit 5e618ea

Browse files
committed
refactor: prefer printf instead of echo -n
[skip ci]
1 parent de2ef91 commit 5e618ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/provision-by-terraform.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
# https://docs.github.com/en/actions/security-guides/encrypted-secrets#using-encrypted-secrets-in-a-workflow
7878
VAULT_PASSWORD: ${{ secrets.VAULT_PASSWORD }}
7979
run: |
80-
echo -n "$VAULT_PASSWORD" >vault-pass.txt
80+
printf '%s' "$VAULT_PASSWORD" >vault-pass.txt
8181
8282
for FILENAME in terraform.tfstate terraform.tfvars; do
8383
echo "Decrypting ${FILENAME}.enc to $FILENAME"

src/main/scripts/ci/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ -z "${VAULT_PASSWORD:-}" ]; then
3636
exit 1
3737
fi
3838

39-
echo -n "$VAULT_PASSWORD" >"$PASS_FILE"
39+
printf '%s' "$VAULT_PASSWORD" >"$PASS_FILE"
4040

4141
for FILE in "$PRIVATE_KEY" "$VARS_FILE"; do
4242
FILENAME="$(basename "$FILE")"

0 commit comments

Comments
 (0)