No empty strings
This commit is contained in:
parent
205cd80c01
commit
dde8e0fcf3
|
@ -1040,11 +1040,13 @@ function restore_data_from_storage {
|
||||||
do
|
do
|
||||||
app_index=$[choice-2]
|
app_index=$[choice-2]
|
||||||
app_name=${app_list[app_index]}
|
app_name=${app_list[app_index]}
|
||||||
$restore_command "${app_name}"
|
if [ ${#app_name} -gt 0 ]; then
|
||||||
if [ ! "$?" = "0" ]; then
|
$restore_command "${app_name}"
|
||||||
dialog --title $"Restore apps from USB" \
|
if [ ! "$?" = "0" ]; then
|
||||||
--msgbox $"Restore of ${app_name} failed with code $?" 6 40
|
dialog --title $"Restore apps from USB" \
|
||||||
return
|
--msgbox $"Restore of ${app_name} failed with code $?" 6 40
|
||||||
|
return
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
ctr=$((ctr + 1))
|
ctr=$((ctr + 1))
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue