Show only valid users
This commit is contained in:
parent
6ea08a43a8
commit
161875525d
|
@ -1302,9 +1302,11 @@ function select_user {
|
||||||
name=()
|
name=()
|
||||||
for u in ${users_array[@]}
|
for u in ${users_array[@]}
|
||||||
do
|
do
|
||||||
i=$((i+1))
|
if [[ $(is_valid_user "$u") == "1" ]]; then
|
||||||
W+=($i "$u")
|
i=$((i+1))
|
||||||
name+=("$u")
|
W+=($i "$u")
|
||||||
|
name+=("$u")
|
||||||
|
fi
|
||||||
done
|
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)
|
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=()
|
name=()
|
||||||
for u in ${users_array[@]}
|
for u in ${users_array[@]}
|
||||||
do
|
do
|
||||||
i=$((i+1))
|
if [[ $(is_valid_user "$u") == "1" ]]; then
|
||||||
W+=($i "$u")
|
i=$((i+1))
|
||||||
name+=("$u")
|
W+=($i "$u")
|
||||||
|
name+=("$u")
|
||||||
|
fi
|
||||||
done
|
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)
|
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