From b794d3433c79b98c31fdf8319b35128a86574f0a Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Wed, 22 Feb 2023 17:58:46 +0000 Subject: [PATCH] ci: use sed instead of perl to rewrite castopod's composer version --- scripts/bundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bundle.sh b/scripts/bundle.sh index 31e5bb80..8e1d2ece 100644 --- a/scripts/bundle.sh +++ b/scripts/bundle.sh @@ -2,7 +2,7 @@ set -e VERSION=$1 -COMPOSER_VERSION=$(echo "$VERSION" | perl -pe 's/(?<=[alpha|beta])\.//g') +COMPOSER_VERSION=$(echo "$VERSION" | sed -r 's/(alpha|beta)./\1/g') # replace composer.json version using jq echo "$( jq '.version = "'$COMPOSER_VERSION'"' composer.json )" > composer.json