]> gitweb.factorcode.org Git - factor.git/commitdiff
Support potentially ancient sed versions
authornomennescio <nomennescio@factorcode.org>
Mon, 16 Oct 2023 11:38:34 +0000 (13:38 +0200)
committernomennescio <nomennescio@factorcode.org>
Mon, 16 Oct 2023 11:38:34 +0000 (13:38 +0200)
build.sh

index 9c0a8f294387c53ef325a4b78700404916e437bc..a421b84ecb9a31e20e820013b59f5d484be5de8c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -566,7 +566,7 @@ set_current_branch() {
         CURRENT_BRANCH="${CI_BRANCH}"
     else
         CURRENT_BRANCH_FULL=$(current_git_branch)
-        CURRENT_BRANCH=$($ECHO $CURRENT_BRANCH_FULL | sed -E 's=(heads|remotes)/==')
+        CURRENT_BRANCH=$($ECHO $CURRENT_BRANCH_FULL | sed 's=heads/==;s=remotes/==')
     fi
 }