Bug: blackbox_deregister_file deletes blackbox-files.txt
* Clarified symantics of blackbox_deregister_file in comments. * Added confidence test
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
#
|
||||
# blackbox_deregister_file -- Remove a file from the blackbox system.
|
||||
#
|
||||
# Takes an encrypted file and removes it from the blackbox system. The
|
||||
# encrypted file will also be removed from the filesystem.
|
||||
# Takes an encrypted file and removes it from the blackbox system.
|
||||
# The encrypted file will also be removed from the filesystem.
|
||||
# The unencrypted file, if it exists, will be left alone.
|
||||
|
||||
set -e
|
||||
source "${0%/*}/_blackbox_common.sh"
|
||||
@@ -25,10 +26,10 @@ fail_if_not_exists "$encrypted_file" "Please specify an existing file."
|
||||
|
||||
prepare_keychain
|
||||
remove_filename_from_cryptlist "$unencrypted_file"
|
||||
vcs_notice "$unencrypted_file"
|
||||
vcs_remove "$BB_FILES"
|
||||
vcs_remove "$encrypted_file"
|
||||
vcs_add "$BB_FILES"
|
||||
|
||||
vcs_commit "Removing from blackbox: ${unencrypted_file}"
|
||||
vcs_commit "Removing from blackbox: ${unencrypted_file}" "$BB_FILES" "$encrypted_file"
|
||||
echo "========== UPDATING VCS: DONE"
|
||||
echo "Local repo updated. Please push when ready."
|
||||
echo " $(which_vcs) push"
|
||||
|
||||
Reference in New Issue
Block a user