Remove ".sh" from file names.

Refactor so it does not rely on PWD being the repo basedir.
Fix assumptions about HG and GIT use.
This commit is contained in:
tlimoncelli@stackexchange.com
2014-08-28 20:47:32 +00:00
parent c903bdc575
commit f387bc9f30
12 changed files with 113 additions and 95 deletions

19
bin/blackbox_start Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#
# blackbox_edit_start.sh -- Decrypt a file for editing.
#
. _blackbox_common.sh
for param in """$@""" ; do
unencrypted_file=$(get_unencrypted_filename "$param")
encrypted_file=$(get_encrypted_filename "$param")
fail_if_not_on_cryptlist "$unencrypted_file"
fail_if_not_exists "$encrypted_file" "This should not happen."
rm -f "$unencrypted_file"
prepare_keychain
decrypt_file "$encrypted_file" "$unencrypted_file"
done