Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

move eval up above definition requirement

  • Loading branch information...
commit 584c089ec49bb51b7ec07abfa6a109a83279d57e 1 parent 12d4b02
zznate authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 release.sh
4 release.sh
View
@@ -7,8 +7,8 @@
# Exit on error
set -e
# Require variable declaration
+tagarg=$1
set -u
-
# read the version from pom.xml
version=$(sed -n "s/<hector.version>\(.*\)<\/hector.version>/\1/p" pom.xml | head -1)
# remove whitespace
@@ -30,7 +30,7 @@ echo Zipping
pushd releases
zip -Tr hector-$version.zip hector-$version/
popd
-if [[ $1 && "$1" = "tag" ]]; then
+if [[ $tagarg && "$tagarg" = "tag" ]]; then
vstr="v$version"
echo "Dropping tag $vstr"
git tag -a $vstr -m "Tagged as $vstr from release script"
Please sign in to comment.
Something went wrong with that request. Please try again.