Restore apps in a loop

This commit is contained in:
Bob Mottram 2016-10-24 17:55:05 +01:00
parent 271368aadd
commit 91dfd1df51
1 changed files with 72 additions and 67 deletions

View File

@ -906,6 +906,9 @@ function restore_data_from_storage {
detect_apps detect_apps
while true
do
app_list=() app_list=()
AllStr=$"all" AllStr=$"all"
n=1 n=1
@ -949,7 +952,7 @@ function restore_data_from_storage {
# exit # exit
if [[ $app_name == "$ExitStr" ]]; then if [[ $app_name == "$ExitStr" ]]; then
return break
fi fi
clear clear
@ -966,7 +969,7 @@ function restore_data_from_storage {
dialog --title $"Restore all apps from $1" \ dialog --title $"Restore all apps from $1" \
--msgbox $"Restore failed with code $retcode" 6 60 --msgbox $"Restore failed with code $retcode" 6 60
fi fi
return break
fi fi
if [[ "$1" == "local" ]]; then if [[ "$1" == "local" ]]; then
@ -976,7 +979,7 @@ function restore_data_from_storage {
dialog --title $"Restore all apps from $1" \ dialog --title $"Restore all apps from $1" \
--msgbox $"Restore complete" 6 40 --msgbox $"Restore complete" 6 40
fi fi
return break
fi fi
# Restore an app # Restore an app
@ -996,6 +999,8 @@ function restore_data_from_storage {
dialog --title $"Restore apps from $1" \ dialog --title $"Restore apps from $1" \
--msgbox $"Restore complete" 6 40 --msgbox $"Restore complete" 6 40
fi fi
done
} }
function restore_data { function restore_data {