]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
scripts: dtc-version: Don't show error messages
authorDragan Simic <dsimic@manjaro.org>
Tue, 6 Feb 2024 11:00:04 +0000 (12:00 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 2 Mar 2024 17:25:20 +0000 (12:25 -0500)
Prevent the error messages produced by which(1), such as the one quoted
below, from being visible in the build outputs.

    which: no dtc in (./scripts/dtc)

This makes the build outputs look a tiny bit cleaner.

Signed-off-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
scripts/dtc-version.sh

index 53ff868bcdcecfe861304400d6e8b4ddcbeafefe..18c59ac1e255a34a33829437e314741d43296f70 100755 (executable)
@@ -15,7 +15,7 @@ if [ ${#dtc} -eq 0 ]; then
        exit 1
 fi
 
-if ! which $dtc >/dev/null ; then
+if ! which $dtc > /dev/null 2>&1 ; then
        echo "Error: Cannot find dtc: $dtc"
        exit 1
 fi