summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorMika Sundland <mika.sundland@gmail.com>2022-01-13 00:46:48 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-01-28 07:19:52 +0000
commit06d905622a413064d912a1997e8f4bb31e65577f (patch)
tree84208269fab0b6671c1ff3738b7bb6593e2b8aea /Meta
parent0cbc688f9241c614b9c9c79317555c694a1dcd3e (diff)
downloadserenity-06d905622a413064d912a1997e8f4bb31e65577f.zip
Meta: Check if gdu is part of GNU coreutils
Diffstat (limited to 'Meta')
-rwxr-xr-xMeta/build-image-qemu.sh2
1 files changed, 1 insertions, 1 deletions
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"