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
|
||||||
require_binary pwgen
|
if [ -z "$abra__cmd_" ]; then
|
||||||
PWGEN=${abra__cmd_:-pwgen -s "$LENGTH" 1}
|
require_binary pwgen
|
||||||
|
abra__cmd_="pwgen -s \"$LENGTH\" 1"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
require_binary pwqgen
|
if [ -z "$abra__cmd_" ]; then
|
||||||
PWGEN="${abra__cmd_:-pwqgen}"
|
require_binary pwqgen
|
||||||
|
abra__cmd_=pwqgen
|
||||||
|
fi
|
||||||
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