diff options
author | Erich Eckner <git@eckner.net> | 2016-08-22 11:19:46 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-08-22 11:19:46 +0200 |
commit | b6759db1d7c9cbd85cd4c39038ab99f47940313a (patch) | |
tree | 4d29f79509413a5e6f7284d96bec1a2531b1a81a /passwort-tresor.in | |
parent | 23da87a4f682a4b188886b5a3a055486e9ff344c (diff) | |
download | passwort-tresor-b6759db1d7c9cbd85cd4c39038ab99f47940313a.tar.xz |
diverses
Diffstat (limited to 'passwort-tresor.in')
-rw-r--r-- | passwort-tresor.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/passwort-tresor.in b/passwort-tresor.in index b66652b..78988ff 100644 --- a/passwort-tresor.in +++ b/passwort-tresor.in @@ -99,6 +99,10 @@ if [ -z "${datei}" ] then datei=$(dialog --stdout --fselect "${standardDatei}" 14 70) [ -z "${datei}" ] && beenden 1 +fi + +if [ -z "${summe}" ] +then summe="${summenVerzeichnis}$(basename "datei" ".gpg").512" fi @@ -159,7 +163,7 @@ then echo '' | xclip -i else sha512sum "${tmpDir}/output" > "${tmpDir}/alteSumme" - ${editor} "${tmpDir}/output" || beenden $? + ${EDITOR:-nano} "${tmpDir}/output" || beenden $? sha512sum -c "${tmpDir}/alteSumme" &> /dev/null && beenden 0 sed "s|^\S\+ |$( sha512sum "${tmpDir}/output" | \ |