diff options
Diffstat (limited to 'share/keyringer/edit')
-rwxr-xr-x | share/keyringer/edit | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/keyringer/edit b/share/keyringer/edit index b4e13a0..0c25f64 100755 --- a/share/keyringer/edit +++ b/share/keyringer/edit @@ -5,10 +5,10 @@ # Load functions LIB="`dirname $0`/../../lib/keyringer/functions" -source $LIB || exit 1 +source "$LIB" || exit 1 # Get file -keyringer_get_file $2 +keyringer_get_file "$2" # Warn user echo "Make sure that $BASEDIR is atop of an encrypted volume." @@ -17,15 +17,15 @@ echo "Make sure that $BASEDIR is atop of an encrypted volume." keyringer_set_tmpfile edit # Decrypt the information to the file -gpg --yes -o $TMPWORK --use-agent -d $KEYDIR/$FILE +gpg --yes -o "$TMPWORK" --use-agent -d "$KEYDIR/$FILE" # Prompt echo "Press any key to open the decrypted data into $EDITOR, Ctrl-C to abort" read key -$EDITOR $TMPWORK +"$EDITOR" "$TMPWORK" # Encrypt again -gpg --yes -o $KEYDIR/$FILE --use-agent --armor -e -s $(keyringer_recipients $RECIPIENTS) $TMPWORK +gpg --yes -o "$KEYDIR/$FILE" --use-agent --armor -e -s $(keyringer_recipients "$RECIPIENTS") "$TMPWORK" # Remove temp file -keyringer_unset_tmpfile $TMPWORK +keyringer_unset_tmpfile "$TMPWORK" |