fix: no newline in passwords
continuous-integration/drone/push Build is passing Details

main
Philipp Rothmann 2023-01-13 14:36:46 +01:00
parent 3df3e6111d
commit 66df86dc53
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ generate_secrets() {
else
eval "echo \"generating $SECRET\""
PW=$(</dev/urandom tr -dc 'A-Za-z0-9' | head -c 40; echo)
eval "echo \"$PW\" | docker -H \"$REMOTE_DOCKER_HOST\" secret create \"$SECRET\" -";
eval "echo -n \"$PW\" | docker -H \"$REMOTE_DOCKER_HOST\" secret create \"$SECRET\" -";
fi
done
echo "--- end secrets ---"