Skip to content

Commit f40c8f2

Browse files
kocsismateTimWolla
authored andcommitted
Fix macOS compatibility of update-lexbor.sh
[Tim: Extracted this as a new commit from phpGH-22699]
1 parent 834bdce commit f40c8f2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ext/dom/lexbor/patches/update-lexbor.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ git clone "$LEXBOR_REPO" "$LEXBOR_TMP_DIR"
1919
(cd "$LEXBOR_TMP_DIR" && git checkout "$LEXBOR_REF")
2020

2121
# Apply patches
22-
mapfile -t patches < <(ls "$PATCHES_DIR"/*.patch)
22+
patches=()
23+
for f in "$PATCHES_DIR"/*.patch; do
24+
[ -e "$f" ] && patches+=("$f")
25+
done
2326
cd "$LEXBOR_TMP_DIR"
2427
for patch in "${patches[@]}"; do
2528
if ! git am -3 "$patch"; then

0 commit comments

Comments
 (0)