Merge pull request #111 from wiredmax/master
File permissions now persits when decrypting.
This commit is contained in:
@@ -30,8 +30,9 @@ echo '========== Decrypting new/changed files: START'
|
||||
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"
|
||||
chmod --reference "$encrypted_file" "$unencrypted_file"
|
||||
if [[ ! -z "$FILE_GROUP" ]]; then
|
||||
chmod g+r "$unencrypted_file"
|
||||
chgrp "$FILE_GROUP" "$unencrypted_file"
|
||||
fi
|
||||
done 99<"$BB_FILES"
|
||||
|
||||
Reference in New Issue
Block a user