CONTENT=($(keyringer_exec decrypt $BASEDIR $FILE))
-if [ "$1" = "append" ]; then
+if [ "$BASENAME" == "append" ]; then
# only display directions if we're running append, not append-batch
echo " "
echo "$FILE currently has ${#CONTENT[@]} lines"
# Encrypt
mkdir -p $KEYDIR/`dirname $FILE`
-if [ "$1" = "encrypt" ]; then
- # only display directions if we're running encrypt, not encrypt-batch
+if [ "$BASENAME" == "encrypt" ]; then
+ # Only display directions if we're running encrypt, not encrypt-batch
echo "Type your message and finish your input with EOF (Ctrl-D)."
fi