Appease shellcheck
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2020-09-25 20:48:33 +02:00
parent 4c5c73ec15
commit 639cc19e42
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ generate_secrets() {
export DOCKER_HOST="ssh://$PLUGIN_USER@$PLUGIN_HOST:$PLUGIN_PORT"
for SECRET in $(yq r "$PLUGIN_COMPOSE" 'secrets.*.name'); do
if ! docker secret ls | grep $SECRET; then
if ! docker secret ls | grep "$SECRET"; then
eval "echo \"generating $SECRET\""
PW=$(</dev/urandom tr -dc 'A-Za-z0-9' | head -c 40; echo)
eval "echo \"$PW\" | docker secret create \"$SECRET\" -";