From a0cef5a7da69f5959e762ebd1207eee6469511c5 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Wed, 18 Jun 2025 09:14:34 +0100 Subject: [PATCH] Meta: Only run WPT.sh cleanup routines on Linux These use the `readarray` command which isn't available in the older version of Bash available on macOS. However, they're also not needed on macOS, so let's skip them entirely. Ref: https://github.com/LadybirdBrowser/ladybird/issues/5118 --- Meta/WPT.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Meta/WPT.sh b/Meta/WPT.sh index 97ffeb8f812..61933c14407 100755 --- a/Meta/WPT.sh +++ b/Meta/WPT.sh @@ -301,8 +301,11 @@ cleanup_run_dirs() { rm -fr "${BUILD_DIR}/wpt" } cleanup_merge_dirs_and_infra() { - cleanup_run_dirs - cleanup_run_infra + # Cleanup is only needed on Linux + if [[ $OSTYPE == 'linux'* ]]; then + cleanup_run_dirs + cleanup_run_infra + fi } trap cleanup_merge_dirs_and_infra EXIT INT TERM