From 8797b2371bb12bcd5a59449bfcb33dab8a479645 Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:00:52 +0300 Subject: [PATCH] shellcheck: SC2070 (error): -n doesn't work with unquoted arguments. --- packages/bsp/common/usr/sbin/armbian-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bsp/common/usr/sbin/armbian-install b/packages/bsp/common/usr/sbin/armbian-install index b43f78bf21..94194c6c97 100755 --- a/packages/bsp/common/usr/sbin/armbian-install +++ b/packages/bsp/common/usr/sbin/armbian-install @@ -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}