From b6759db1d7c9cbd85cd4c39038ab99f47940313a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 22 Aug 2016 11:19:46 +0200 Subject: diverses --- passwort-tresor.in | 6 +++++- passwort-tresor.konf | 1 - 2 files changed, 5 insertions(+), 2 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" | \ diff --git a/passwort-tresor.konf b/passwort-tresor.konf index 320e9b5..5a9c411 100644 --- a/passwort-tresor.konf +++ b/passwort-tresor.konf @@ -1,6 +1,5 @@ #!/bin/bash schluessel='DE9F7688CACF04FEB81A6C590AEEC90755DA7B5A' -editor="${EDITOR:-nano}" standardDatei='/mnt/141.35.50.159_home/Dokumente/todolist.gpg' summenVerzeichnis='~/.sums/' -- cgit v1.2.3-70-g09d2