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
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

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"