diff options
| author | linxin <[email protected]> | 2023-04-28 14:56:44 +0800 |
|---|---|---|
| committer | linxin <[email protected]> | 2023-04-28 14:56:44 +0800 |
| commit | 45125a8f128e29d09631aa9090e1f6b9bfd8f3b3 (patch) | |
| tree | 92d148b7ee9291d577b1d9ceaff145278d0a2639 | |
| parent | 639c0cb8c4aba19ff507667bbd348de2eb80788f (diff) | |
增加version上的过滤去除字母部分
| -rw-r--r-- | ci/travis.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ci/travis.sh b/ci/travis.sh index c6e59cc..bd77c80 100644 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -33,7 +33,7 @@ env | sort : "${NO_RTTI:=OFF}" : "${COMPILER_IS_GNUCXX:=OFF}" chmod +x autorevision.sh -export VERSION_ID=$(./autorevision.sh -t sh -o version | grep VCS_TAG | sed 's/^.*v//g' | sed 's/"//g') +export VERSION_ID=$(./autorevision.sh -t sh -o version | grep VCS_TAG | sed 's/^.*v//g' | sed 's/"//g'| sed 's/[[:alpha:]]//g') # export VERSION_ID="1.0.0" yum install -y golang go version @@ -50,6 +50,4 @@ ls -halt ./*.rpm if [ -n "${UPLOAD}" ]; then cp ~/rpm_upload_tools.py ./ python3 rpm_upload_tools.py ${PULP3_RPM_REPO_NAME} ${PULP3_RPM_DIST_NAME} *.rpm -fi - - +fi
\ No newline at end of file |
