From 3b76c6c936fa2c0e42c504b201bfbf00d87ffb65 Mon Sep 17 00:00:00 2001 From: Charles Prost Date: Fri, 20 Mar 2015 09:40:42 +0100 Subject: [PATCH] [clean] Remove useless IFS save --- bin/blackbox_diff | 4 ---- bin/blackbox_postdeploy | 4 ---- bin/blackbox_shred_all_files | 4 ---- bin/blackbox_update_all_files | 4 ---- 4 files changed, 16 deletions(-) diff --git a/bin/blackbox_diff b/bin/blackbox_diff index 350be01..60c71a1 100755 --- a/bin/blackbox_diff +++ b/bin/blackbox_diff @@ -17,8 +17,6 @@ fi prepare_keychain -OLDIFS=$IFS - modified_files=() echo '========== DIFFING FILES: START' while IFS= read <&99 -r unencrypted_file; do @@ -38,8 +36,6 @@ echo '========== DIFFING FILES: DONE' fail_if_keychain_has_secrets -IFS=$OLDIFS - echo '========== DONE.' if [ ${#modified_files[@]} -eq 0 ] ; then diff --git a/bin/blackbox_postdeploy b/bin/blackbox_postdeploy index bb4a3c0..bf9b0d3 100755 --- a/bin/blackbox_postdeploy +++ b/bin/blackbox_postdeploy @@ -26,8 +26,6 @@ fi change_to_vcs_root prepare_keychain -OLDIFS=$IFS - # Decrypt: echo '========== Decrypting new/changed files: START' while IFS= read <&99 -r unencrypted_file; do @@ -39,6 +37,4 @@ while IFS= read <&99 -r unencrypted_file; do fi done 99<"$BB_FILES" -IFS=$OLDIFS - echo '========== Decrypting new/changed files: DONE' diff --git a/bin/blackbox_shred_all_files b/bin/blackbox_shred_all_files index aa0c995..d50a9c5 100755 --- a/bin/blackbox_shred_all_files +++ b/bin/blackbox_shred_all_files @@ -21,8 +21,6 @@ source "${blackbox_home}/_blackbox_common.sh" change_to_vcs_root -OLDIFS=$IFS - echo '========== FILES BEING SHREDDED:' while IFS= read <&99 -r unencrypted_file; do unencrypted_file=$(get_unencrypted_filename "$unencrypted_file") @@ -33,6 +31,4 @@ while IFS= read <&99 -r unencrypted_file; do fi done 99<"$BB_FILES" -IFS=$OLDIFS - echo '========== DONE.' diff --git a/bin/blackbox_update_all_files b/bin/blackbox_update_all_files index 8708561..041140f 100755 --- a/bin/blackbox_update_all_files +++ b/bin/blackbox_update_all_files @@ -18,8 +18,6 @@ fi disclose_admins prepare_keychain -OLDIFS=$IFS - echo '========== ENCRYPTED FILES TO BE RE-ENCRYPTED:' while IFS= read <&99 -r unencrypted_file; do echo " $unencrypted_file.gpg" @@ -62,8 +60,6 @@ while IFS= read <&99 -r unencrypted_file; do done 99<"$BB_FILES" vcs_commit 'Re-encrypted keys' -IFS=$OLDIFS - VCSCMD=$(which_vcs) echo '========== DONE.' echo 'Likely next step:'