Skip to content

Commit

Permalink
Fixed --password issue
Browse files Browse the repository at this point in the history
This fixes the length check for the argument length supplied to `--password`, specifically:
`./cyberpanel.sh: line 1554: [: testpassw0rd: integer expression expected`
  • Loading branch information
Znuff authored Mar 3, 2020
1 parent 49e06d1 commit c7c7559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyberpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7c7559

Please sign in to comment.