Possible fix to invalid length "20"?

See coop-cloud/abra#160.
This commit is contained in:
decentral1se 2021-05-10 10:36:23 +02:00
parent e0258d397b
commit 3a353f4062
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

2
abra
View File

@ -1649,7 +1649,7 @@ sub_app_secret_generate(){
if [[ -n "$LENGTH" ]]; then if [[ -n "$LENGTH" ]]; then
if [ -z "$abra__cmd_" ]; then if [ -z "$abra__cmd_" ]; then
require_binary pwgen require_binary pwgen
abra__cmd_="pwgen -s \"$LENGTH\" 1" abra__cmd_="pwgen -s $LENGTH 1"
fi fi
else else
if [ -z "$abra__cmd_" ]; then if [ -z "$abra__cmd_" ]; then