Get choice
This commit is contained in:
parent
a08cb91c2f
commit
0eb3c678db
|
@ -946,14 +946,12 @@ function restore_data_from_storage {
|
||||||
--radiolist $'Choose:' \
|
--radiolist $'Choose:' \
|
||||||
30 40 20 $applist)
|
30 40 20 $applist)
|
||||||
|
|
||||||
sel=$?
|
if [ $? -ne 0 ]; then
|
||||||
case $sel in
|
break
|
||||||
1) return;;
|
fi
|
||||||
255) return;;
|
app_index=$[choice-1]
|
||||||
esac
|
app_index=$[app_index-1]
|
||||||
selected_index=$(cat $data)
|
app_name=${app_list[app_index]}
|
||||||
selected_index=$[selected_index-1]
|
|
||||||
app_name=${app_list[selected_index]}
|
|
||||||
|
|
||||||
# exit
|
# exit
|
||||||
if [[ "$app_name" == "$ExitStr" ]]; then
|
if [[ "$app_name" == "$ExitStr" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue