From 5ad5b2df7e054709367b03b8fc5387178ebd7fee Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Thu, 21 Apr 2016 07:39:04 -0500 Subject: [PATCH] Double quote array expansion --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index a89bfa4..335b1bf 100755 --- a/yadm +++ b/yadm @@ -243,7 +243,7 @@ function encrypt() { done < "$YADM_ENCRYPT" #; encrypt all files which match the globs - tar -cv ${GLOBS[@]} | gpg --yes "$GPG_OPTS" --output "$YADM_ARCHIVE" + tar -cv "${GLOBS[@]}" | gpg --yes "$GPG_OPTS" --output "$YADM_ARCHIVE" if [ $? = 0 ]; then echo "Wrote new file: $YADM_ARCHIVE" else