shellcheck: SC2070 (error): -n doesn't work with unquoted arguments.
This commit is contained in:
parent
70686a11a9
commit
8797b2371b
@ -857,12 +857,12 @@ main()
|
||||
options+=(5 "Install/Update the bootloader on $rootchip (${root_partition_device})")
|
||||
fi
|
||||
|
||||
if [ -n ${emmc_dev} ] && [ "${emmc_dev}" != "${root_partition_device}" ]; then
|
||||
if [ -n "${emmc_dev}" ] && [ "${emmc_dev}" != "${root_partition_device}" ]; then
|
||||
|
||||
options+=(6 "Install/Update the bootloader on eMMC (${emmc_dev})")
|
||||
BOOTPART=${emmc_dev}
|
||||
|
||||
elif [ -n ${sd_dev} ] && [ "${sd_dev}" != "${root_partition_device}" ]; then
|
||||
elif [ -n "${sd_dev}" ] && [ "${sd_dev}" != "${root_partition_device}" ]; then
|
||||
|
||||
options+=(6 "Install/Update the bootloader on SD card (${sd_dev})")
|
||||
BOOTPART=${sd_dev}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user