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:39:47 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-26 09:39:47 +0400
commit04700b93a4bb9b44e21b60137c8120592ae1f357 (patch)
treeeeb875c0f5c02aa2f19e90e8ba98e31812e00916 /misc
parentef94e348dce1abb499860362c534a372c521e127 (diff)
Fixes #5126 Adding code that will fail the release script, if attempt to re-package an existing version.
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/package/build.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/package/build.sh b/misc/package/build.sh
index 6f3206c503..96d6f24c78 100755
--- a/misc/package/build.sh
+++ b/misc/package/build.sh
@@ -93,6 +93,13 @@ if [ -z "$VERSION" ]; then
fi
+# Fail script, if Piwik has already been built, to prevent re-building a given release
+destination=$HTTP_PATH/piwik-$VERSION.zip
+if [ -f "$destination" ]
+then
+ die "Piwik $VERSION has already been packaged. You must increase Piwik version number before packaging Piwik."
+fi
+
############################
echo "Starting build...."
############################