Fixed encryption warning

This commit is contained in:
Jon Lewis
2018-02-05 18:05:48 -06:00
parent f6e10cf6a5
commit 2852feb33e

2
vns
View File

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