Commit da72ebd9 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

sead instead of grep -P (not implemented on gitlab docker image)

parent 0eb9ef66
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ release_job:
    - if: $CI_COMMIT_TAG                 # Run this job when a tag is created
  before_script:
    - |
      EXPATH_VERSION=$(grep -P -o -e '(?<=version=").*?(?=")' src/resources/expath-pkg.xml)
      EXPATH_VERSION=$(sed -rn 's/.*version="([^"]*)".*/\1/p' src/resources/expath-pkg.xml)
      if [ ${CI_COMMIT_TAG} != ${EXPATH_VERSION} ] 
      then echo 'fail : Bad expath-pkg.xml version : ${EXPATH_VERSION} instead of ${CI_COMMIT_TAG}' && exit 1
      else echo 'Version ok'