From c7c7559a87120c7e25366f63ded52759a8cf0aba Mon Sep 17 00:00:00 2001 From: Bogdan Ilisei Date: Tue, 3 Mar 2020 22:47:22 +0200 Subject: [PATCH] Fixed --password issue This fixes the length check for the argument length supplied to `--password`, specifically: `./cyberpanel.sh: line 1554: [: testpassw0rd: integer expression expected` --- cyberpanel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 14afc9e2d..95a97e04c 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -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