Show selection number

This commit is contained in:
Bob Mottram 2016-10-24 18:22:06 +01:00
parent a1fcbfe42c
commit a08cb91c2f
1 changed files with 2 additions and 2 deletions

View File

@ -953,7 +953,7 @@ function restore_data_from_storage {
esac
selected_index=$(cat $data)
selected_index=$[selected_index-1]
app_name=${app_list[$selected_index]}
app_name=${app_list[selected_index]}
# exit
if [[ "$app_name" == "$ExitStr" ]]; then
@ -961,7 +961,7 @@ function restore_data_from_storage {
fi
clear
echo $"Selected $app_name"
echo $"Selected $selected_index $app_name"
# Restore all
if [[ "$app_name" == "$AllStr" ]]; then