1
0
Fork 0
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:
OniriCorpe 2024-01-22 05:58:37 +01:00
parent 2fd9030718
commit 006ecf3e55

View file

@ -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