aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2024-01-10 08:30:30 +0100
committerYegor Yefremov <yegorslists@googlemail.com>2024-01-10 08:30:30 +0100
commitfdf1aead04795cdf48748517fcd88e9a264c2f63 (patch)
treea9a97232bf61bdd6131559c3114d15f24d3f0499
parent3aef62c5f63ff4e6bb6582ab6ddf079208fddc65 (diff)
99-log-event: add double quote to silence SC2086 warning
SC2086 suggests using double quote to to prevent globbing and word splitting.
-rw-r--r--data/dispatcher-connection/99-log-event4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/dispatcher-connection/99-log-event b/data/dispatcher-connection/99-log-event
index 31188efa..aac56de2 100644
--- a/data/dispatcher-connection/99-log-event
+++ b/data/dispatcher-connection/99-log-event
@@ -14,8 +14,8 @@ BEARER_PATH="$2"
INTERFACE="$3"
STATE="$4"
-MODEM_ID=$(basename ${MODEM_PATH})
-BEARER_ID=$(basename ${BEARER_PATH})
+MODEM_ID=$(basename "${MODEM_PATH}")
+BEARER_ID=$(basename "${BEARER_PATH}")
# report in syslog the event
logger -t "connection-dispatch" "modem${MODEM_ID}: bearer${BEARER_ID}: interface ${INTERFACE} ${STATE}"