diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/keyringer/edit | 2 | ||||
-rwxr-xr-x | share/keyringer/genpair | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/share/keyringer/edit b/share/keyringer/edit index bee1d7b..edeb693 100755 --- a/share/keyringer/edit +++ b/share/keyringer/edit @@ -11,6 +11,7 @@ keyringer_set_env $* # Get file keyringer_get_file $2 +# Warn user echo "Make sure that $BASEDIR is atop of an encrypted volume." # Set a tmp file @@ -20,6 +21,7 @@ trap "keyringer_unset_tmpfile $TMPFILE ; exit" INT TERM EXIT # Decrypt the information to the file gpg --yes -o $TMPFILE --use-agent -d $KEYDIR/$FILE +# Prompt echo "Press any key to open the decrypted data into $EDITOR, Ctrl-C to abort" read key $EDITOR $TMPFILE diff --git a/share/keyringer/genpair b/share/keyringer/genpair index 6de4b4e..cc54ba8 100755 --- a/share/keyringer/genpair +++ b/share/keyringer/genpair @@ -138,6 +138,10 @@ fi # Prepare mkdir -p $KEYDIR && chmod 700 $KEYDIR + +WORK="`keyringer_set_tmpfile genpair`" +trap "keyringer_unset_tmpfile $WORK; exit" INT TERM EXIT + WORK="`mktemp -d $KEYDIR/genpair.XXXXXX`" if [ "$?" != "0" ]; then echo "Error setting up $WORK" |