Fix syntax error: blackbox_edit: line 12: conditional binary operator expected

Fixed #39
This commit is contained in:
tal@whatexit.org
2015-01-26 13:45:44 -05:00
parent 9634e2424a
commit 9f7792a629

View File

@@ -9,7 +9,7 @@ source ${blackbox_home}/_blackbox_common.sh
for param in """$@""" ; do
unencrypted_file=$(get_unencrypted_filename "$param")
if [[ ! is_on_cryptlist "$param" ]] && [[ ! is_on_cryptlist "$unencrypted_file" ]] ; then
if ! is_on_cryptlist "$param" && ! is_on_cryptlist "$unencrypted_file" ; then
read -r -p "Encrypt file $param? (y/n) " ans
case "$ans" in
y* | Y*)