Skip to content
Permalink
Browse files
Fixed --password issue
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 committed Mar 3, 2020
1 parent 49e06d1 commit c7c7559a87120c7e25366f63ded52759a8cf0aba
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit c7c7559

Please sign in to comment.