@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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.'
|
||||
|
||||
@@ -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:'
|
||||
|
||||
Reference in New Issue
Block a user