Skip to content

Commit c7c7559

Browse files
authored
Fixed --password issue
This fixes the length check for the argument length supplied to `--password`, specifically: `./cyberpanel.sh: line 1554: [: testpassw0rd: integer expression expected`
1 parent 49e06d1 commit c7c7559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyberpanel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,7 @@ else
15551555
elif [[ "${1}" == 'r' ]] || [[ $1 == 'random' ]] ; then
15561556
ADMIN_PASS=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16 ; echo '')
15571557
else
1558-
if [ ${1} -lt 8 ] ; then
1558+
if [ ${#1} -lt 8 ] ; then
15591559
echo -e "\nPassword lenth less than 8 digital, please choose a more complicated password.\n"
15601560
exit
15611561
fi

0 commit comments

Comments
 (0)