Fixed variable name embedded within a status message
Change-Id: I03a7ca2adf3c1235c01c7ce3535d5e17b15f7356
diff --git a/jjb/shell/github-release.sh b/jjb/shell/github-release.sh
index 22cff84..5de6d03 100755
--- a/jjb/shell/github-release.sh
+++ b/jjb/shell/github-release.sh
@@ -127,7 +127,7 @@
rev+=("$(( RANDOM % 10 + 1 ))")
rev+=("$(( RANDOM % 256 + 1 ))")
rev+=("$(( RANDOM % 10000 + 1 ))")
- ver="v${rev[0]}.${rev[1]}.${rev[2]}"
+ local ver="v${rev[0]}.${rev[1]}.${rev[2]}"
func_echo "VERSION: $ver"
ref="$ver"
@@ -298,7 +298,7 @@
# Critical failure for new/yet-to-be-released repo ?
# ------------------------------------------------------
if [[ "$__ver" =~ ^v?([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
- echo "git has a SemVer released version tag: '$ver'"
+ echo "git has a SemVer released version tag: '$__ver'"
echo "Building artifacts for GitHub release."
elif [[ "$__ver" =~ ^v?([0-9]+)\.([0-9]+)\.([0-9]+)-dev([0-9]+)$ ]]; then