Fix unbound variable errors

This commit is contained in:
2022-06-02 16:08:07 +02:00
parent a6eeccb417
commit 4f8c1b5388
15 changed files with 85 additions and 86 deletions

View File

@@ -39,7 +39,7 @@ step_1() {
SDDEV="$2"
if [ -z "$1" ] && interactive ; then
read -p "Provide image download url from $toolDownSite: " toolDownUrl
elif [ ! -z "$1" ] ; then
elif [ -n "${1:-}" ] ; then
toolDownUrl="$1"
else
error -e "No image file provided for download"
@@ -246,7 +246,7 @@ HDBOOT_EOF
read_sd_dev() {
local partExt=""
if [ ! -z "$1" ] ; then
if [ -n "${1:-}" ] ; then
SDBOOT=
SDROOT=
SDROOTDEV=