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
This commit is contained in:
Jon Bardin
2017-11-07 07:52:34 -08:00
committed by Tom Limoncelli
parent 972abfc03f
commit 043b66dc50
2 changed files with 2 additions and 1 deletions

View 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

View File

@@ -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"