@@ -24,7 +24,7 @@ USE_POINTER="${NOTESDIR}/USE"
24
24
DIRFORDIARY=" ${NOTESDIR} /Journal"
25
25
JOURNALDIR=" ${JOURNALDIR:- $DIRFORDIARY } "
26
26
GPGKEY=' '
27
- GPG_OPTS=" --quiet --yes --compress-algo=none --no-encrypt-to"
27
+ GPG_OPTS=" --quiet --yes --compress-algo=none --no-encrypt-to"
28
28
GPG=" gpg"
29
29
SHREDCMD=" rm"
30
30
EDITOR=" ${EDITOR:- nano} "
@@ -161,7 +161,7 @@ note_add () {
161
161
# aspell -c "$notefile"
162
162
163
163
# encrypt note file
164
- $GPG -e -r $KEY $GPG_OPTS " $notefile "
164
+ $GPG -ear $KEY $GPG_OPTS " $notefile "
165
165
166
166
rm " $notefile "
167
167
fi
@@ -176,7 +176,7 @@ note_import () {
176
176
get_recipient
177
177
178
178
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} "
180
180
fi
181
181
}
182
182
@@ -206,12 +206,12 @@ note_edit () {
206
206
if [ -f " $notefile " ]; then
207
207
gpg -d -o " ${decrypted} " " ${notefile} "
208
208
${EDITOR} " ${decrypted} "
209
- $GPG -e -r $KEY $GPG_OPTS " ${decrypted} "
209
+ $GPG -ear $KEY $GPG_OPTS " ${decrypted} "
210
210
rm ${decrypted}
211
211
elif [ -f " ${notefile} .gpg" ]; then
212
212
gpg -d -o " ${decrypted} " " ${notefile} .gpg"
213
213
${EDITOR} " ${decrypted} "
214
- $GPG -e -r $KEY $GPG_OPTS " ${decrypted} "
214
+ $GPG -ear $KEY $GPG_OPTS " ${decrypted} "
215
215
rm ${decrypted}
216
216
else
217
217
echo Note file does not exist
@@ -568,7 +568,7 @@ cmd_newkey () {
568
568
do
569
569
echo $filen ;
570
570
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} "
572
572
573
573
done
574
574
@@ -632,11 +632,11 @@ case "$1" in
632
632
help|--help) shift ; cmd_usage " $@ " ;;
633
633
version|--version) shift ; cmd_version " $@ " ;;
634
634
show|ls|list) shift ; cmd_show " $@ " ;;
635
- view|cat) shift ; cmd_view " $@ " ;;
635
+ view|cat) shift ; cmd_view " $@ " ;;
636
636
find|search|grep) shift ; cmd_find " $@ " ;;
637
637
insert|add) shift ; cmd_insert " $@ " ;;
638
638
import) shift ; cmd_import " $@ " ;;
639
- edit|ed|-e ) shift ; cmd_edit " $@ " ;;
639
+ edit|ed) shift ; cmd_edit " $@ " ;;
640
640
generate) shift ; cmd_generate " $@ " ;;
641
641
delete|rm|remove) shift ; cmd_delete " $@ " ;;
642
642
rename|mv) shift ; cmd_copy_move " mv" " $@ " ;;
0 commit comments