From e9720fb1c36c90be73d4f6c0c0b47f62322a2646 Mon Sep 17 00:00:00 2001 From: Martin Zuther Date: Fri, 27 Dec 2019 23:39:06 +0100 Subject: [PATCH] add quotes to support spaces in filenames --- contrib/hooks/post_encrypt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/hooks/post_encrypt b/contrib/hooks/post_encrypt index ffec5d5..a37a8ee 100755 --- a/contrib/hooks/post_encrypt +++ b/contrib/hooks/post_encrypt @@ -67,7 +67,7 @@ ensure_algorithm echo -n > $YADM_CHECKSUMS # calculate checksums for encrypted files -for included in ${YADM_ENCRYPT_INCLUDE_FILES[@]}; do +for included in "${YADM_ENCRYPT_INCLUDE_FILES[@]}"; do shasum --algorithm $CHECKSUM_ALGORITHM $included >> $YADM_CHECKSUMS # signal errors