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:
committed by
Tom Limoncelli
parent
b5dfb744f5
commit
9b5e91c57c
@@ -44,7 +44,7 @@ function register_new_file() {
|
|||||||
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}" "$BB_FILES" "$encrypted_file"
|
vcs_commit "registered in blackbox: ${unencrypted_file}" "$BB_FILES" "$encrypted_file" "$(vcs_ignore_file_path)"
|
||||||
}
|
}
|
||||||
|
|
||||||
for target in "$@"; do
|
for target in "$@"; do
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ echo '========== FILES BEING SHREDDED:'
|
|||||||
|
|
||||||
exported_internal_shred_file() {
|
exported_internal_shred_file() {
|
||||||
source "$1/_blackbox_common.sh"
|
source "$1/_blackbox_common.sh"
|
||||||
|
#unencrypted_file=$(get_unencrypted_filename "$2")
|
||||||
unencrypted_file="$2"
|
unencrypted_file="$2"
|
||||||
if [[ -f "$unencrypted_file" ]]; then
|
if [[ -f "$unencrypted_file" ]]; then
|
||||||
echo " SHRED: $unencrypted_file"
|
echo " SHRED: $unencrypted_file"
|
||||||
|
|||||||
Reference in New Issue
Block a user