Fixed encryption warning
This commit is contained in:
2
vns
2
vns
@@ -167,7 +167,7 @@ vns_create () {
|
|||||||
vim "$VNS_STORE/$1.gpg"
|
vim "$VNS_STORE/$1.gpg"
|
||||||
|
|
||||||
# Warn the user if the note failed to encrypt
|
# 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"\
|
printf "$VNS_RED_COLOR!$VNS_RESET_COLOR - %s\n %s\n"\
|
||||||
"The created note was not encrypted."\
|
"The created note was not encrypted."\
|
||||||
"Check your vim-gnupg setup."
|
"Check your vim-gnupg setup."
|
||||||
|
|||||||
Reference in New Issue
Block a user