aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ci-run.sh
diff options
context:
space:
mode:
authorumarcor <38422348+umarcor@users.noreply.github.com>2020-05-20 23:15:27 +0200
committerGitHub <noreply@github.com>2020-05-20 23:15:27 +0200
commitcb58bdf49582bddfdfe7555035eca7c90d649439 (patch)
treea36749c83d06855876a86f156cf768803a7b881a /dist/ci-run.sh
parentc69c9c51c9235835bb876e4373bb4c784cf7c96d (diff)
downloadghdl-cb58bdf49582bddfdfe7555035eca7c90d649439.tar.gz
ghdl-cb58bdf49582bddfdfe7555035eca7c90d649439.tar.bz2
ghdl-cb58bdf49582bddfdfe7555035eca7c90d649439.zip
ci: adjust pkg tag in ci-run.sh (#1329)
Diffstat (limited to 'dist/ci-run.sh')
-rwxr-xr-xdist/ci-run.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/dist/ci-run.sh b/dist/ci-run.sh
index 87e130e21..838d97d4e 100755
--- a/dist/ci-run.sh
+++ b/dist/ci-run.sh
@@ -135,7 +135,7 @@ vertag() {
echo $1 | cut -c2-
else
# Regular tag (like snapshots), nothing to change.
- echo "$2"
+ echo "$1"
fi
}
@@ -163,7 +163,7 @@ buildCmdOpts () {
# Compute package name
case "$GITHUB_REF" in
*tags*)
- PKG_TAG="$(vertag "`echo "$GITHUB_REF" | sed 's#^refs/tags/\(.*\)#\1#g'`" "$GITHUB_REF")"
+ PKG_TAG="$(vertag "`echo "$GITHUB_REF" | sed 's#^refs/tags/\(.*\)#\1#g'`")"
;;
*heads*|*pull*)
PKG_TAG="`notag`"
@@ -172,7 +172,7 @@ buildCmdOpts () {
if [ -z "$TRAVIS_TAG" ]; then
PKG_TAG="`notag`"
else
- PKG_TAG="`vertag "$TRAVIS_TAG" "$TRAVIS_TAG"`"
+ PKG_TAG="`vertag "$TRAVIS_TAG"`"
fi
;;
*)