Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-26 09:38:12 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-26 09:38:12 +0400
commitef94e348dce1abb499860362c534a372c521e127 (patch)
tree98b277a5180c96898c972cf57b254460be381477 /misc
parent45fa682325a9696e335bdf4c454da10cb9fb01e0 (diff)
Clean fail if the tag does not exist
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/package/build.sh7
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