diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-05-26 09:38:12 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-05-26 09:38:12 +0400 |
commit | ef94e348dce1abb499860362c534a372c521e127 (patch) | |
tree | 98b277a5180c96898c972cf57b254460be381477 /misc | |
parent | 45fa682325a9696e335bdf4c454da10cb9fb01e0 (diff) |
Clean fail if the tag does not exist
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/package/build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/package/build.sh b/misc/package/build.sh index a33dbeec46..6f3206c503 100755 --- a/misc/package/build.sh +++ b/misc/package/build.sh @@ -89,9 +89,10 @@ namespace Piwik;\nclass Manifest {\n\tstatic $files=array(\n/; $ s/$/\n\t);\n}/' } if [ -z "$VERSION" ]; then - die "Expected a version number, 'nightly', or 'webtest' as a parameter" + die "Expected a version number as a parameter" fi + ############################ echo "Starting build...." ############################ @@ -116,6 +117,10 @@ cd $DEST_PATH/piwik_last_version git pull git checkout tags/$VERSION +if [ $? -eq 1 ] ; then + echo "Tag $VERSION does not exist in repository" +fi + echo "copying files to a new directory..." cd .. rm -Rf piwik |