From 8da1c0049a550a7882436008ec5d02ff73024a4c Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Fri, 30 Aug 2024 19:28:58 -0700 Subject: [PATCH] ci: Take tail instead of head to avoid broken pipes --- src/ci/scripts/dump-environment.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ci/scripts/dump-environment.sh b/src/ci/scripts/dump-environment.sh index 812690181e9..7afaa472f6e 100755 --- a/src/ci/scripts/dump-environment.sh +++ b/src/ci/scripts/dump-environment.sh @@ -15,9 +15,7 @@ df -h echo echo "biggest files in the working dir:" -set +o pipefail -du . | sort -nr | head -n100 -set -o pipefail +du . | sort -n | tail -n100 | sort -nr # because piping sort to head gives a broken pipe echo if isMacOS