From 06d905622a413064d912a1997e8f4bb31e65577f Mon Sep 17 00:00:00 2001 From: Mika Sundland Date: Thu, 13 Jan 2022 00:46:48 +0100 Subject: [PATCH] Meta: Check if gdu is part of GNU coreutils --- Meta/build-image-qemu.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/build-image-qemu.sh b/Meta/build-image-qemu.sh index 92ca703f2b..a4e369cf97 100755 --- a/Meta/build-image-qemu.sh +++ b/Meta/build-image-qemu.sh @@ -39,7 +39,7 @@ PATH="$SCRIPT_DIR/../Toolchain/Local/i686/bin:$PATH" # We depend on GNU coreutils du for the --apparent-size extension. # GNU coreutils is a build dependency. -if type gdu > /dev/null 2>&1; then +if command -v gdu > /dev/null 2>&1 && gdu --version | grep -q "GNU coreutils"; then GNUDU="gdu" else GNUDU="du"