From a8d1c598b024c4303868aeffb2ba0d9ccd0d1993 Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Wed, 20 Nov 2024 17:15:39 +0100 Subject: [PATCH] Fix update.sh for use on BSD/Darwin BSD vs. GNU sed have incompatible argument syntax for editing files in-place. We now simply use good old perl, instead of ugly workarounds. --- update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 05b6b8faa..1887cbb78 100755 --- a/update.sh +++ b/update.sh @@ -34,7 +34,9 @@ for variant in apache fpm fpm-alpine; do echo "✓ Wrote $dir/Dockerfile" done -sed -i -E "s/1\.[0-9]\.[0-9]+-/${VERSION}-/" .github/workflows/build.yml +# Use perl to avoid problems with BSD vs. GNU sed, which have incompatible +# argument syntax for editing files in-place. +perl -pi -e "s/1\.[0-9]\.[0-9]+-/${VERSION}-/" .github/workflows/build.yml echo "Updating version in build.yml workflow" echo "Done."