[clean] Remove useless IFS save
This commit is contained in:
@@ -17,8 +17,6 @@ fi
|
|||||||
|
|
||||||
prepare_keychain
|
prepare_keychain
|
||||||
|
|
||||||
OLDIFS=$IFS
|
|
||||||
|
|
||||||
modified_files=()
|
modified_files=()
|
||||||
echo '========== DIFFING FILES: START'
|
echo '========== DIFFING FILES: START'
|
||||||
while IFS= read <&99 -r unencrypted_file; do
|
while IFS= read <&99 -r unencrypted_file; do
|
||||||
@@ -38,8 +36,6 @@ echo '========== DIFFING FILES: DONE'
|
|||||||
|
|
||||||
fail_if_keychain_has_secrets
|
fail_if_keychain_has_secrets
|
||||||
|
|
||||||
IFS=$OLDIFS
|
|
||||||
|
|
||||||
echo '========== DONE.'
|
echo '========== DONE.'
|
||||||
|
|
||||||
if [ ${#modified_files[@]} -eq 0 ] ; then
|
if [ ${#modified_files[@]} -eq 0 ] ; then
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ fi
|
|||||||
change_to_vcs_root
|
change_to_vcs_root
|
||||||
prepare_keychain
|
prepare_keychain
|
||||||
|
|
||||||
OLDIFS=$IFS
|
|
||||||
|
|
||||||
# Decrypt:
|
# Decrypt:
|
||||||
echo '========== Decrypting new/changed files: START'
|
echo '========== Decrypting new/changed files: START'
|
||||||
while IFS= read <&99 -r unencrypted_file; do
|
while IFS= read <&99 -r unencrypted_file; do
|
||||||
@@ -39,6 +37,4 @@ while IFS= read <&99 -r unencrypted_file; do
|
|||||||
fi
|
fi
|
||||||
done 99<"$BB_FILES"
|
done 99<"$BB_FILES"
|
||||||
|
|
||||||
IFS=$OLDIFS
|
|
||||||
|
|
||||||
echo '========== Decrypting new/changed files: DONE'
|
echo '========== Decrypting new/changed files: DONE'
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ source "${blackbox_home}/_blackbox_common.sh"
|
|||||||
|
|
||||||
change_to_vcs_root
|
change_to_vcs_root
|
||||||
|
|
||||||
OLDIFS=$IFS
|
|
||||||
|
|
||||||
echo '========== FILES BEING SHREDDED:'
|
echo '========== FILES BEING SHREDDED:'
|
||||||
while IFS= read <&99 -r unencrypted_file; do
|
while IFS= read <&99 -r unencrypted_file; do
|
||||||
unencrypted_file=$(get_unencrypted_filename "$unencrypted_file")
|
unencrypted_file=$(get_unencrypted_filename "$unencrypted_file")
|
||||||
@@ -33,6 +31,4 @@ while IFS= read <&99 -r unencrypted_file; do
|
|||||||
fi
|
fi
|
||||||
done 99<"$BB_FILES"
|
done 99<"$BB_FILES"
|
||||||
|
|
||||||
IFS=$OLDIFS
|
|
||||||
|
|
||||||
echo '========== DONE.'
|
echo '========== DONE.'
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ fi
|
|||||||
disclose_admins
|
disclose_admins
|
||||||
prepare_keychain
|
prepare_keychain
|
||||||
|
|
||||||
OLDIFS=$IFS
|
|
||||||
|
|
||||||
echo '========== ENCRYPTED FILES TO BE RE-ENCRYPTED:'
|
echo '========== ENCRYPTED FILES TO BE RE-ENCRYPTED:'
|
||||||
while IFS= read <&99 -r unencrypted_file; do
|
while IFS= read <&99 -r unencrypted_file; do
|
||||||
echo " $unencrypted_file.gpg"
|
echo " $unencrypted_file.gpg"
|
||||||
@@ -62,8 +60,6 @@ while IFS= read <&99 -r unencrypted_file; do
|
|||||||
done 99<"$BB_FILES"
|
done 99<"$BB_FILES"
|
||||||
vcs_commit 'Re-encrypted keys'
|
vcs_commit 'Re-encrypted keys'
|
||||||
|
|
||||||
IFS=$OLDIFS
|
|
||||||
|
|
||||||
VCSCMD=$(which_vcs)
|
VCSCMD=$(which_vcs)
|
||||||
echo '========== DONE.'
|
echo '========== DONE.'
|
||||||
echo 'Likely next step:'
|
echo 'Likely next step:'
|
||||||
|
|||||||
Reference in New Issue
Block a user