From 043b66dc50d8c0aeb06326ef0a4af05bef73b36a Mon Sep 17 00:00:00 2001 From: Jon Bardin Date: Tue, 7 Nov 2017 07:52:34 -0800 Subject: [PATCH] Fixes issue were .gitignore is not included in the commit when you register new file (#206) * this should fix the .gitignore not be including in the commit when registering a new file --- bin/blackbox_register_new_file | 2 +- bin/blackbox_shred_all_files | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/blackbox_register_new_file b/bin/blackbox_register_new_file index 288b8ae..0a49aad 100755 --- a/bin/blackbox_register_new_file +++ b/bin/blackbox_register_new_file @@ -44,7 +44,7 @@ function register_new_file() { 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}" "$BB_FILES" "$encrypted_file" + vcs_commit "registered in blackbox: ${unencrypted_file}" "$BB_FILES" "$encrypted_file" "$(vcs_ignore_file_path)" } for target in "$@"; do diff --git a/bin/blackbox_shred_all_files b/bin/blackbox_shred_all_files index c0c9afb..668c657 100755 --- a/bin/blackbox_shred_all_files +++ b/bin/blackbox_shred_all_files @@ -24,6 +24,7 @@ echo '========== FILES BEING SHREDDED:' exported_internal_shred_file() { source "$1/_blackbox_common.sh" + #unencrypted_file=$(get_unencrypted_filename "$2") unencrypted_file="$2" if [[ -f "$unencrypted_file" ]]; then echo " SHRED: $unencrypted_file"