Any key after restore fails

This commit is contained in:
Bob Mottram 2017-06-25 13:07:40 +01:00
parent 4945db5817
commit e18eb98ded
1 changed files with 2 additions and 0 deletions

View File

@ -1175,6 +1175,7 @@ function restore_data_from_storage {
$restore_command
retcode="$?"
if [[ "$retcode" != "0" ]]; then
any_key
if [[ "$1" == "local" ]]; then
dialog --title $"Restore all apps from USB" \
--msgbox $"Restore failed with code $retcode" 6 60
@ -1199,6 +1200,7 @@ function restore_data_from_storage {
$restore_command "${app_name}"
retcode="$?"
if [[ "$retcode" != "0" ]]; then
any_key
dialog --title $"Restore apps from USB" \
--msgbox $"Restore of ${app_name} failed with code $retcode" 6 60
return