From a3fc4cbf4a361b51864643252453819bfaede6d0 Mon Sep 17 00:00:00 2001 From: "tlimoncelli@stackexchange.com" Date: Mon, 15 Jun 2015 20:33:21 +0000 Subject: [PATCH] Simplify handling of "SECRETSEXPOSED" --- bin/blackbox_register_new_file | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/blackbox_register_new_file b/bin/blackbox_register_new_file index 4a7120d..9bd9508 100755 --- a/bin/blackbox_register_new_file +++ b/bin/blackbox_register_new_file @@ -39,15 +39,12 @@ shred_file "$unencrypted_file" if "$SECRETSEXPOSED" ; then vcs_remove "$unencrypted_file" vcs_add "$encrypted_file" - COMMIT_FILES=("$BB_FILES" "$encrypted_file" "$unencrypted_file") -else - COMMIT_FILES=("$BB_FILES" "$encrypted_file") fi vcs_ignore "$unencrypted_file" echo 'NOTE: "already tracked!" messages are safe to ignore.' vcs_add "$BB_FILES" "$encrypted_file" -vcs_commit "registered in blackbox: ${unencrypted_file}" "${COMMIT_FILES[@]}" +vcs_commit "registered in blackbox: ${unencrypted_file}" "$BB_FILES" "$encrypted_file" echo "========== UPDATING VCS: DONE" echo "Local repo updated. Please push when ready." echo " $(which_vcs) push"