[PATCH] scripts: dtc-version: Don't show error messages

Quentin Schulz quentin.schulz at theobroma-systems.com
Tue Feb 6 11:25:25 CET 2024


Hi Dragan,

On 2/6/24 04:56, Dragan Simic wrote:
> [You don't often get email from dsimic at manjaro.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> 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 at manjaro.org>
> ---
>   scripts/dtc-version.sh | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/dtc-version.sh b/scripts/dtc-version.sh
> index 53ff868bcdce..6d3d7b68fdfa 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>/dev/null ; then

What about

which $dtc > /dev/null 2>&1

instead?

In any case,

Reviewed-by: Quentin Schulz <quentin.schulz at theobroma-systems.com>

Thanks,
Quentin


More information about the U-Boot mailing list