rc.serial_port.jinja: Remove 'x' prefix in variable comparisons to resolve ShellCheck warnings

This commit is contained in:
Nuno Marques
2024-05-18 20:15:27 +01:00
parent e2aa9605d2
commit 03050f23a8
+1 -1
View File
@@ -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