Fixed a bug where the decryption notice was shown when no encrypted
notes were in the store
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user