index offset
This commit is contained in:
parent
fa5a0f74e0
commit
7f508fef8e
|
@ -994,7 +994,7 @@ function restore_data_from_storage {
|
||||||
# Test for restoring all apps
|
# Test for restoring all apps
|
||||||
for choice in $choices
|
for choice in $choices
|
||||||
do
|
do
|
||||||
app_index=$[choice-1]
|
app_index=$[choice-2]
|
||||||
app_name=${app_list[app_index]}
|
app_name=${app_list[app_index]}
|
||||||
if [[ $app_name == "$AllStr" ]]; then
|
if [[ $app_name == "$AllStr" ]]; then
|
||||||
$restore_command
|
$restore_command
|
||||||
|
@ -1023,7 +1023,7 @@ function restore_data_from_storage {
|
||||||
ctr=0
|
ctr=0
|
||||||
for choice in $choices
|
for choice in $choices
|
||||||
do
|
do
|
||||||
app_index=$[choice-1]
|
app_index=$[choice-2]
|
||||||
app_name=${app_list[app_index]}
|
app_name=${app_list[app_index]}
|
||||||
$restore_command "${app_name}"
|
$restore_command "${app_name}"
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
|
|
Loading…
Reference in New Issue