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