diff --git a/vns b/vns index 5e0abfe..d67fe55 100755 --- a/vns +++ b/vns @@ -167,7 +167,7 @@ vns_create () { vim "$VNS_STORE/$1.gpg" # Warn the user if the note failed to encrypt - if ! grep "PGP" <<< "$(file "$VNS_STORE/$1")" > /dev/null; then + if ! grep "PGP" <<< "$(file "$VNS_STORE/$1.gpg")" > /dev/null; then printf "$VNS_RED_COLOR!$VNS_RESET_COLOR - %s\n %s\n"\ "The created note was not encrypted."\ "Check your vim-gnupg setup."