Fixed --password issue

This fixes the length check for the argument length supplied to `--password`, specifically:
`./cyberpanel.sh: line 1554: [: testpassw0rd: integer expression expected`
This commit is contained in:
Bogdan Ilisei
2020-03-03 22:47:22 +02:00
committed by GitHub
parent 49e06d1230
commit c7c7559a87

View File

@@ -1555,7 +1555,7 @@ else
elif [[ "${1}" == 'r' ]] || [[ $1 == 'random' ]] ; then
ADMIN_PASS=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16 ; echo '')
else
if [ ${1} -lt 8 ] ; then
if [ ${#1} -lt 8 ] ; then
echo -e "\nPassword lenth less than 8 digital, please choose a more complicated password.\n"
exit
fi