Fix if expression

This commit is contained in:
tlimoncelli@stackexchange.com
2015-01-14 16:10:45 +00:00
parent 2dd4c51635
commit 9634e2424a

View File

@@ -9,7 +9,7 @@ source ${blackbox_home}/_blackbox_common.sh
for param in """$@""" ; do for param in """$@""" ; do
unencrypted_file=$(get_unencrypted_filename "$param") 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 read -r -p "Encrypt file $param? (y/n) " ans
case "$ans" in case "$ans" in
y* | Y*) y* | Y*)