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