From 6bd66d50e94b4366f4dfbeebc10df322726c58a2 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Tue, 17 Jun 2025 11:52:35 -0700 Subject: [PATCH] shellcheck: fix SC2268 Avoid x-prefix if [ "x$PRT_GPS1_" = "x" ]; then ^-----------^ SC2268 (style): Avoid x-prefix in comparisons as it no longer serves a purpose. Signed-off-by: Ramon Roche --- Tools/serial/rc.serial_port.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/serial/rc.serial_port.jinja b/Tools/serial/rc.serial_port.jinja index 0877321761..94e092660e 100644 --- a/Tools/serial/rc.serial_port.jinja +++ b/Tools/serial/rc.serial_port.jinja @@ -5,7 +5,7 @@ set SERIAL_DEV none {% for serial_device in serial_devices -%} if param compare "$PRT" {{ serial_device.index }}; then - if [ "x$PRT_{{ serial_device.tag }}_" = "x" ]; then + if [ "$PRT_{{ serial_device.tag }}_" = "" ]; then set SERIAL_DEV {{ serial_device.device }} set BAUD_PARAM SER_{{ serial_device.tag }}_BAUD set PRT_{{ serial_device.tag }}_ 1