From 7f508fef8e02beb2a90a57f7a75b25214b5cb6a9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 20 Oct 2016 16:14:57 +0100 Subject: [PATCH] index offset --- src/freedombone-controlpanel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 10357967..866a640f 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -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