Show only valid users
This commit is contained in:
parent
6ea08a43a8
commit
161875525d
|
@ -1302,9 +1302,11 @@ function select_user {
|
|||
name=()
|
||||
for u in ${users_array[@]}
|
||||
do
|
||||
if [[ $(is_valid_user "$u") == "1" ]]; then
|
||||
i=$((i+1))
|
||||
W+=($i "$u")
|
||||
name+=("$u")
|
||||
fi
|
||||
done
|
||||
|
||||
user_index=$(dialog --backtitle $"Freedombone Configuration" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
||||
|
|
|
@ -396,9 +396,11 @@ function select_user {
|
|||
name=()
|
||||
for u in ${users_array[@]}
|
||||
do
|
||||
if [[ $(is_valid_user "$u") == "1" ]]; then
|
||||
i=$((i+1))
|
||||
W+=($i "$u")
|
||||
name+=("$u")
|
||||
fi
|
||||
done
|
||||
|
||||
user_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select User" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
|
||||
|
|
Loading…
Reference in New Issue