@@ -24,7 +24,7 @@ USE_POINTER="${NOTESDIR}/USE"
2424DIRFORDIARY=" ${NOTESDIR} /Journal"
2525JOURNALDIR=" ${JOURNALDIR:- $DIRFORDIARY } "
2626GPGKEY=' '
27- GPG_OPTS=" --quiet --yes --compress-algo=none --no-encrypt-to"
27+ GPG_OPTS=" --quiet --yes --compress-algo=none --no-encrypt-to"
2828GPG=" gpg"
2929SHREDCMD=" rm"
3030EDITOR=" ${EDITOR:- nano} "
@@ -161,7 +161,7 @@ note_add () {
161161 # aspell -c "$notefile"
162162
163163 # encrypt note file
164- $GPG -e -r $KEY $GPG_OPTS " $notefile "
164+ $GPG -ear $KEY $GPG_OPTS " $notefile "
165165
166166 rm " $notefile "
167167 fi
@@ -176,7 +176,7 @@ note_import () {
176176 get_recipient
177177
178178 if [ -f " ${toimport} " ] ; then
179- $GPG -e -r $KEY $GPG_OPTS -o " ${USE_POINTER} /${target} .gpg" " ${toimport} "
179+ $GPG -ear $KEY $GPG_OPTS -o " ${USE_POINTER} /${target} .gpg" " ${toimport} "
180180 fi
181181}
182182
@@ -206,12 +206,12 @@ note_edit () {
206206 if [ -f " $notefile " ]; then
207207 gpg -d -o " ${decrypted} " " ${notefile} "
208208 ${EDITOR} " ${decrypted} "
209- $GPG -e -r $KEY $GPG_OPTS " ${decrypted} "
209+ $GPG -ear $KEY $GPG_OPTS " ${decrypted} "
210210 rm ${decrypted}
211211 elif [ -f " ${notefile} .gpg" ]; then
212212 gpg -d -o " ${decrypted} " " ${notefile} .gpg"
213213 ${EDITOR} " ${decrypted} "
214- $GPG -e -r $KEY $GPG_OPTS " ${decrypted} "
214+ $GPG -ear $KEY $GPG_OPTS " ${decrypted} "
215215 rm ${decrypted}
216216 else
217217 echo Note file does not exist
@@ -568,7 +568,7 @@ cmd_newkey () {
568568 do
569569 echo $filen ;
570570 gpg -o " ${filen} " --yes -d " ${filen} .gpg"
571- gpg -r ${mynewkey} --yes -e " ${filen} " && ${SHREDCMD} " ${filen} "
571+ gpg -r ${mynewkey} --yes -ea " ${filen} " && ${SHREDCMD} " ${filen} "
572572
573573 done
574574
@@ -632,11 +632,11 @@ case "$1" in
632632 help|--help) shift ; cmd_usage " $@ " ;;
633633 version|--version) shift ; cmd_version " $@ " ;;
634634 show|ls|list) shift ; cmd_show " $@ " ;;
635- view|cat) shift ; cmd_view " $@ " ;;
635+ view|cat) shift ; cmd_view " $@ " ;;
636636 find|search|grep) shift ; cmd_find " $@ " ;;
637637 insert|add) shift ; cmd_insert " $@ " ;;
638638 import) shift ; cmd_import " $@ " ;;
639- edit|ed|-e ) shift ; cmd_edit " $@ " ;;
639+ edit|ed) shift ; cmd_edit " $@ " ;;
640640 generate) shift ; cmd_generate " $@ " ;;
641641 delete|rm|remove) shift ; cmd_delete " $@ " ;;
642642 rename|mv) shift ; cmd_copy_move " mv" " $@ " ;;
0 commit comments