bash: quoting array expansion because thats how it is

This commit is contained in:
Girish Ramakrishnan
2015-08-27 09:49:44 -07:00
parent 5f9fa5c352
commit 99395ddf5a
+1 -1
View File
@@ -38,7 +38,7 @@ for try in `seq 1 5`; do
headers=(${headers[@]} "-H" "x-amz-security-token: ${session_token}")
fi
if $curl -L ${headers[@]} "${restore_url}" \
if $curl -L "${headers[@]}" "${restore_url}" \
| openssl aes-256-cbc -d -pass "pass:${restore_key}" \
| tar -zxf - -C "${DATA_DIR}/${app_id}" 2>"${error_log}"; then
chown -R yellowtent:yellowtent "${DATA_DIR}/${app_id}"