Skip to content
Snippets Groups Projects
Commit 2df98832 authored by Bob Mottram's avatar Bob Mottram
Browse files

Selecting apps

parent ebf91c68
No related branches found
No related tags found
No related merge requests found
......@@ -144,21 +144,18 @@ function passwords_select_user {
function passwords_show_apps {
SELECTED_APP=
select_all_apps=$1
applist=""
n=1
app_index=0
i=0
W=()
for a in "${APPS_AVAILABLE[@]}"
do
applist="$applist $n $a off"
n=$[n+1]
app_index=$[app_index+1]
i=$((i+1))
W+=($i "$a")
done
selected_app_index=$(dialog --backtitle $"Freedombone Control Panel" --title $"Select App" --menu $"Select one of the following:" 24 40 17 "${W[@]}" 3>&2 2>&1 1>&3)
if [ $? -eq 0 ]; then
SELECTED_APP="${name[$((selected_app_index-1))]}"
SELECTED_APP="${APPS_INSTALLED_NAMES[$((selected_app_index-1))]}"
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment