No empty strings

This commit is contained in:
Bob Mottram 2016-10-20 17:16:02 +01:00
parent 205cd80c01
commit dde8e0fcf3
1 changed files with 7 additions and 5 deletions

View File

@ -1040,12 +1040,14 @@ function restore_data_from_storage {
do
app_index=$[choice-2]
app_name=${app_list[app_index]}
if [ ${#app_name} -gt 0 ]; then
$restore_command "${app_name}"
if [ ! "$?" = "0" ]; then
dialog --title $"Restore apps from USB" \
--msgbox $"Restore of ${app_name} failed with code $?" 6 40
return
fi
fi
ctr=$((ctr + 1))
done
if [ $ctr -gt 0 ]; then