From 93f3645fc557a989cda6358b5c1f0572f51aa01b Mon Sep 17 00:00:00 2001 From: mxmehl Date: Fri, 16 Dec 2016 11:53:10 +0100 Subject: [PATCH] wrong variable in default setting of More Options dialog --- gpassgen.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gpassgen.sh b/gpassgen.sh index 623dc12..77dd5dd 100755 --- a/gpassgen.sh +++ b/gpassgen.sh @@ -27,8 +27,6 @@ function checkexit { if [ $1 = 1 ]; then exit 1; fi } -cd "$(dirname "$(readlink -f "$0")")" - if [ $(zenity --question --cancel-label "More options" --ok-label "Close" --text "$(apg -m 16 -M NCL -a 1)" --title "Generated Passwords"; echo $?) == 1 ]; then # More options requested @@ -61,10 +59,10 @@ if [ $(zenity --question --cancel-label "More options" --ok-label "Close" --text # Set defaults if no entry was given if [ "$PLEN" == "" ]; then - PLEN="12" + PLEN="16" fi if [ "$PALG" == "" ]; then - PLEN="1" + PALG="1" fi if [ "$POPT" == "" ]; then POPT="NCL"