summaryrefslogtreecommitdiff
path: root/passwort-tresor.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-08-21 09:13:44 +0200
committerErich Eckner <git@eckner.net>2016-08-21 09:13:44 +0200
commit23da87a4f682a4b188886b5a3a055486e9ff344c (patch)
treee64121432d34b07a73a94b0d7ee0fb17b1d2a9ff /passwort-tresor.in
parent3bdca4491fe9f9736b58c6ac527e51a37155f78e (diff)
downloadpasswort-tresor-23da87a4f682a4b188886b5a3a055486e9ff344c.tar.xz
whatever
Diffstat (limited to 'passwort-tresor.in')
-rw-r--r--passwort-tresor.in11
1 files changed, 3 insertions, 8 deletions
diff --git a/passwort-tresor.in b/passwort-tresor.in
index 0f2b92d..b66652b 100644
--- a/passwort-tresor.in
+++ b/passwort-tresor.in
@@ -36,7 +36,7 @@ verwendung()
}
eval set -- "$(
- getopt -o d:gs \
+ getopt -o d:gs: \
--long datei: \
--long grep \
--long summe: \
@@ -54,6 +54,7 @@ while true
do
case $1 in
-d|--datei)
+ [ -n "${datei}" ] && verwendung
shift
datei="$1"
;;
@@ -61,6 +62,7 @@ do
greppw=true
;;
-s|--summe)
+ [ -n "${summe}" ] && verwendung
shift
summe="$1"
;;
@@ -107,13 +109,6 @@ then
beenden 1
fi
-if [ ! -e "${summe}" ]
-then
- >&2 echo "Die Summendatei '${summe}' gibt es nicht!"
- >&2 echo 'Ich beende.'
- beenden 1
-fi
-
${greppw} && read -p 'suche nach: ' suche
tmpDir="$(mktemp -d)"