aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-02-25 11:15:45 +0100
committerPetr Štetiar <ynezz@true.cz>2022-02-28 15:17:11 +0100
commit9116096c0f1abe3cdb07ad9c9340dd4ca65ce797 (patch)
tree74c216f824b9664d3d49cdd2f9b28c9b9ee17a64 /scripts
parent0dc3566a3b5a54c57cccdf09d36ff54d85ecac21 (diff)
downloadupstream-9116096c0f1abe3cdb07ad9c9340dd4ca65ce797.tar.gz
upstream-9116096c0f1abe3cdb07ad9c9340dd4ca65ce797.tar.bz2
upstream-9116096c0f1abe3cdb07ad9c9340dd4ca65ce797.zip
check-toolchain-clean.sh: fix shellcheck warnings
Fixes following complaints and suggestions: In scripts/check-toolchain-clean.sh line 2: eval `grep CONFIG_GCC_VERSION .config` ^-- SC2046 (warning): Quote this to prevent word splitting. ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-toolchain-clean.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/check-toolchain-clean.sh b/scripts/check-toolchain-clean.sh
index af24e740b7..34b82dec5d 100755
--- a/scripts/check-toolchain-clean.sh
+++ b/scripts/check-toolchain-clean.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-eval `grep CONFIG_GCC_VERSION .config`
+eval "$(grep CONFIG_GCC_VERSION .config)"
CONFIG_TOOLCHAIN_BUILD_VER="$CONFIG_GCC_VERSION-$(cat toolchain/build_version)"
touch .toolchain_build_ver
[ "$CONFIG_TOOLCHAIN_BUILD_VER" = "$(cat .toolchain_build_ver)" ] && exit 0