From 2f9dd2054468a421cf06118ecb70e643477de53c Mon Sep 17 00:00:00 2001 From: bendra Date: Sun, 19 Oct 2014 20:55:47 -0700 Subject: [PATCH] allow blackbox_edit to work with either encrypted or plaintext file name --- bin/blackbox_edit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/blackbox_edit b/bin/blackbox_edit index 0997fd5..2d2b3f3 100755 --- a/bin/blackbox_edit +++ b/bin/blackbox_edit @@ -7,7 +7,8 @@ set -e . _blackbox_common.sh for param in """$@""" ; do - if ! is_on_cryptlist "$param" ; then + unencrypted_file=$(get_unencrypted_filename "$param") + if [[! is_on_cryptlist "$param" ]] && [[! is_on_cryptlist "$unencrypted_file" ]] ; then read -p "Encrypt file $param? (y/n) " ans case "$ans" in y* | Y*)