mirror of
https://github.com/YunoHost-Apps/pufferpanel_ynh.git
synced 2024-09-03 20:16:03 +02:00
fix lenght check
This commit is contained in:
parent
2fd9030718
commit
006ecf3e55
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ email=$(ynh_user_get_info --username="$admin" --key=mail)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Validating installation parameters..."
|
||||
|
||||
if [[ $admin -lt 5 ]]; then
|
||||
if [[ ${#admin} -lt 5 ]]; then
|
||||
ynh_die --message="Admin username minimum length is 5"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue