bash: quote the array expansion

This commit is contained in:
Girish Ramakrishnan
2015-08-27 10:13:05 -07:00
parent 99395ddf5a
commit 4b69216548

View File

@@ -42,7 +42,7 @@ for try in `seq 1 5`; do
if tar -cvzf - -C "${app_data_snapshot}" . \
| openssl aes-256-cbc -e -pass "pass:${backup_key}" \
| curl --fail -X PUT ${headers[@]} --data-binary @- "${backup_url}" 2>"${error_log}"; then
| curl --fail -X PUT "${headers[@]}" --data-binary @- "${backup_url}" 2>"${error_log}"; then
break
fi
cat "${error_log}" && rm "${error_log}"