parent
5649730446
commit
208b11af0a
13
abra
13
abra
@ -1632,12 +1632,17 @@ sub_app_secret_generate(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$LENGTH" ]]; then
|
if [[ -n "$LENGTH" ]]; then
|
||||||
|
if [ -z "$abra__cmd_" ]; then
|
||||||
require_binary pwgen
|
require_binary pwgen
|
||||||
PWGEN=${abra__cmd_:-pwgen -s "$LENGTH" 1}
|
abra__cmd_="pwgen -s \"$LENGTH\" 1"
|
||||||
else
|
|
||||||
require_binary pwqgen
|
|
||||||
PWGEN="${abra__cmd_:-pwqgen}"
|
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
if [ -z "$abra__cmd_" ]; then
|
||||||
|
require_binary pwqgen
|
||||||
|
abra__cmd_=pwqgen
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
PWGEN=${abra__cmd_}
|
||||||
|
|
||||||
debug "SECRET: $SECRET, VERSION $VERSION, PW $PWGEN, ALL $abra___all"
|
debug "SECRET: $SECRET, VERSION $VERSION, PW $PWGEN, ALL $abra___all"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user