shellcheck: SC2070 (error): -n doesn't work with unquoted arguments.

This commit is contained in:
The-going 2024-08-02 18:00:52 +03:00 committed by Igor
parent 70686a11a9
commit 8797b2371b

View File

@ -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}