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"