index offset

This commit is contained in:
Bob Mottram 2016-10-20 16:14:57 +01:00
parent fa5a0f74e0
commit 7f508fef8e
1 changed files with 2 additions and 2 deletions

View File

@ -994,7 +994,7 @@ function restore_data_from_storage {
# Test for restoring all apps
for choice in $choices
do
app_index=$[choice-1]
app_index=$[choice-2]
app_name=${app_list[app_index]}
if [[ $app_name == "$AllStr" ]]; then
$restore_command
@ -1023,7 +1023,7 @@ function restore_data_from_storage {
ctr=0
for choice in $choices
do
app_index=$[choice-1]
app_index=$[choice-2]
app_name=${app_list[app_index]}
$restore_command "${app_name}"
if [ ! "$?" = "0" ]; then