From 39bf1c7843db73a4537e90f894cc831161069f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berthold=20H=C3=B6llmann?= Date: Sun, 22 Sep 2024 21:26:14 +0200 Subject: [PATCH] Fixing Codacy Static Code Analysis --- Sming/Arch/Esp32/Tools/install.sh | 2 +- Tools/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sming/Arch/Esp32/Tools/install.sh b/Sming/Arch/Esp32/Tools/install.sh index b563e0ccd3..850d989cec 100755 --- a/Sming/Arch/Esp32/Tools/install.sh +++ b/Sming/Arch/Esp32/Tools/install.sh @@ -35,7 +35,7 @@ case $DIST in _OK=1 _COMMANDS=(dfu-util bison flex gperf) for _COMMAND in "${_COMMANDS[@]}"; do - if ! [ -x "$(command -v ${_COMMAND})" ]; then + if ! [ -x "$(command -v \"${_COMMAND}\")" ]; then _OK=0 echo "Install programm ${_COMMAND}" fi diff --git a/Tools/install.sh b/Tools/install.sh index b52b618e7c..b2657ff4d4 100755 --- a/Tools/install.sh +++ b/Tools/install.sh @@ -115,7 +115,7 @@ else wget \ ) for _TOOL in "${_REQUIRED_TOOLS[@]}"; do - if ! [ -x "$(command -v $_TOOL)" ]; then + if ! [ -x "$(command -v \"${_TOOL}\")" ]; then _OK=0 echo "Install required tool ${_TOOL}" fi