Simplify handling of "SECRETSEXPOSED"

This commit is contained in:
tlimoncelli@stackexchange.com
2015-06-15 20:33:21 +00:00
parent c129d06ea0
commit a3fc4cbf4a

View File

@@ -39,15 +39,12 @@ shred_file "$unencrypted_file"
if "$SECRETSEXPOSED" ; then if "$SECRETSEXPOSED" ; then
vcs_remove "$unencrypted_file" vcs_remove "$unencrypted_file"
vcs_add "$encrypted_file" vcs_add "$encrypted_file"
COMMIT_FILES=("$BB_FILES" "$encrypted_file" "$unencrypted_file")
else
COMMIT_FILES=("$BB_FILES" "$encrypted_file")
fi fi
vcs_ignore "$unencrypted_file" vcs_ignore "$unencrypted_file"
echo 'NOTE: "already tracked!" messages are safe to ignore.' echo 'NOTE: "already tracked!" messages are safe to ignore.'
vcs_add "$BB_FILES" "$encrypted_file" 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 "========== UPDATING VCS: DONE"
echo "Local repo updated. Please push when ready." echo "Local repo updated. Please push when ready."
echo " $(which_vcs) push" echo " $(which_vcs) push"