From eb96b6d1fc28cec961cda9c8a4c2044a65160b22 Mon Sep 17 00:00:00 2001 From: "tlimoncelli@stackexchange.com" Date: Wed, 5 Nov 2014 16:47:53 +0000 Subject: [PATCH] Use sh-compatible version of redirection. --- bin/blackbox_postdeploy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/blackbox_postdeploy b/bin/blackbox_postdeploy index 7b12b92..8e285ae 100755 --- a/bin/blackbox_postdeploy +++ b/bin/blackbox_postdeploy @@ -38,13 +38,12 @@ prepare_keychain # Decrypt: echo '========== Decrypting new/changed files: START' -exec 99<"$BB_FILES" -while read -u 99 unencrypted_file; do +while IFS= read <&99 -r unencrypted_file; do encrypted_file=$(get_encrypted_filename "$unencrypted_file") decrypt_file_overwrite "$encrypted_file" "$unencrypted_file" chmod g+r "$unencrypted_file" if [[ ! -z "$FILE_GROUP" ]]; then chgrp $FILE_GROUP "$unencrypted_file" fi -done +done 99<"$BB_FILES" echo '========== Decrypting new/changed files: DONE'