Fixed a bug where the decryption notice was shown when no encrypted

notes were in the store
This commit is contained in:
Jon-William Lewis
2016-02-16 21:40:24 -06:00
parent 3b09a39ba8
commit 33e201214a

View File

@@ -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