From 91f6ab865c91e2da76058c572ae36a1e38bac1e7 Mon Sep 17 00:00:00 2001 From: Frederic Taillandier Date: Fri, 10 Mar 2023 07:37:45 +0100 Subject: [PATCH] ROMFS: fix shellcheck error in px4-rc.simulator (#21282) --- ROMFS/px4fmu_common/init.d-posix/px4-rc.simulator | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d-posix/px4-rc.simulator b/ROMFS/px4fmu_common/init.d-posix/px4-rc.simulator index 4b38c5edf6..1f4693d4c1 100644 --- a/ROMFS/px4fmu_common/init.d-posix/px4-rc.simulator +++ b/ROMFS/px4fmu_common/init.d-posix/px4-rc.simulator @@ -8,11 +8,11 @@ if [ "$PX4_SIMULATOR" = "sihsim" ] || [ "$(param show -q SYS_AUTOSTART)" -eq "0" echo "INFO [init] SIH simulator" - if [ ! -z "${PX4_HOME_LAT}" ]; then + if [ -n "${PX4_HOME_LAT}" ]; then param set SIH_LOC_LAT0 ${PX4_HOME_LAT} fi - if [ ! -z "${PX4_HOME_LON}" ]; then + if [ -n "${PX4_HOME_LON}" ]; then param set SIH_LOC_LON0 ${PX4_HOME_LON} fi