aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--make-release.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/make-release.sh b/make-release.sh
index 3946c90..30f4e7c 100644
--- a/make-release.sh
+++ b/make-release.sh
@@ -9,6 +9,11 @@
## Call from site directory with the version and branch variables
## properly configured in this script.
+# report the usage of uninitialized variables, etc
+set -u
+# stop on first error (not working in if clauses)
+set -e
+
# if version is unset, will use the default experimental version from site.mk
VERSION=${3:-"2017.1.1~lede$(date '+%y%m%d%H%M')"}
# branch must be set to either experimental, beta or stable