mirror of
https://github.com/StackExchange/blackbox.git
synced 2025-12-16 03:23:00 +02:00
Use sh-compatible version of redirection.
This commit is contained in:
@@ -38,13 +38,12 @@ prepare_keychain
|
|||||||
|
|
||||||
# Decrypt:
|
# Decrypt:
|
||||||
echo '========== Decrypting new/changed files: START'
|
echo '========== Decrypting new/changed files: START'
|
||||||
exec 99<"$BB_FILES"
|
while IFS= read <&99 -r unencrypted_file; do
|
||||||
while read -u 99 unencrypted_file; do
|
|
||||||
encrypted_file=$(get_encrypted_filename "$unencrypted_file")
|
encrypted_file=$(get_encrypted_filename "$unencrypted_file")
|
||||||
decrypt_file_overwrite "$encrypted_file" "$unencrypted_file"
|
decrypt_file_overwrite "$encrypted_file" "$unencrypted_file"
|
||||||
chmod g+r "$unencrypted_file"
|
chmod g+r "$unencrypted_file"
|
||||||
if [[ ! -z "$FILE_GROUP" ]]; then
|
if [[ ! -z "$FILE_GROUP" ]]; then
|
||||||
chgrp $FILE_GROUP "$unencrypted_file"
|
chgrp $FILE_GROUP "$unencrypted_file"
|
||||||
fi
|
fi
|
||||||
done
|
done 99<"$BB_FILES"
|
||||||
echo '========== Decrypting new/changed files: DONE'
|
echo '========== Decrypting new/changed files: DONE'
|
||||||
|
|||||||
Reference in New Issue
Block a user