]> gitweb.factorcode.org Git - factor.git/blobdiff - build.sh
Support potentially ancient sed versions
[factor.git] / 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
 }