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
This commit is contained in:
Sam Atkins 2025-06-18 09:14:34 +01:00
commit a0cef5a7da
Notes: github-actions[bot] 2025-06-18 12:54:06 +00:00

View file

@ -301,8 +301,11 @@ cleanup_run_dirs() {
rm -fr "${BUILD_DIR}/wpt"
}
cleanup_merge_dirs_and_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