From 33e201214aff80f267aa4a633e80514e3d37cc24 Mon Sep 17 00:00:00 2001 From: Jon-William Lewis Date: Tue, 16 Feb 2016 21:40:24 -0600 Subject: [PATCH] Fixed a bug where the decryption notice was shown when no encrypted notes were in the store --- src/main/stage1.sns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/stage1.sns.sh b/src/main/stage1.sns.sh index 98fd341..f9ba024 100644 --- a/src/main/stage1.sns.sh +++ b/src/main/stage1.sns.sh @@ -43,7 +43,7 @@ if [ "$ENCRYPTION" == "TRUE" ]; then # does not wish to decrypt all notes. else if [ ! -r "$NOTES_DIR"/.do_not_decrypt ]; then - if [ -n $(find "$NOTES_DIR" -type f -name "*.gpg.$EXT" > /dev/null) ]; then + if [ -n "$(find "$NOTES_DIR" -type f -name "*.gpg.$EXT" > /dev/null)" ]; then while true; do read -p "Would you like to de-encrypt previously encrypted notes? " YN case $YN in