瀏覽代碼

Show selection number

Bob Mottram 8 年之前
父節點
當前提交
a08cb91c2f
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/freedombone-controlpanel

+ 2
- 2
src/freedombone-controlpanel 查看文件

@@ -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