diff options
| author | Dragan Simic <[email protected]> | 2024-02-06 12:00:04 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-03-02 12:25:20 -0500 |
| commit | 5b3f9698c16313fb780d784c69856cea74272476 (patch) | |
| tree | 1f61385bb09510d6dd7274cbfdfa671acf2bddb4 /scripts | |
| parent | 8904e933a3aa01a2559d38e081703ed6fd92807d (diff) | |
scripts: dtc-version: Don't show error messages
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 <[email protected]>
Reviewed-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/dtc-version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dtc-version.sh b/scripts/dtc-version.sh index 53ff868bcdc..18c59ac1e25 100755 --- a/scripts/dtc-version.sh +++ b/scripts/dtc-version.sh @@ -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 |
