Browse Source

Show selection number

Bob Mottram 8 years ago
parent
commit
a08cb91c2f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone-controlpanel

+ 2
- 2
src/freedombone-controlpanel View File

@@ -953,7 +953,7 @@ function restore_data_from_storage {
953 953
         esac
954 954
         selected_index=$(cat $data)
955 955
         selected_index=$[selected_index-1]
956
-        app_name=${app_list[$selected_index]}
956
+        app_name=${app_list[selected_index]}
957 957
 
958 958
         # exit
959 959
         if [[ "$app_name" == "$ExitStr" ]]; then
@@ -961,7 +961,7 @@ function restore_data_from_storage {
961 961
         fi
962 962
 
963 963
         clear
964
-        echo $"Selected $app_name"
964
+        echo $"Selected $selected_index $app_name"
965 965
 
966 966
         # Restore all
967 967
         if [[ "$app_name" == "$AllStr" ]]; then