1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

Meta: Check if gdu is part of GNU coreutils

This commit is contained in:
Mika Sundland 2022-01-13 00:46:48 +01:00 committed by Brian Gianforcaro
parent 0cbc688f92
commit 06d905622a

View file

@ -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"