From 55e2b64e9d32a189442124f2cfcfa2ce07b4fdc7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 17 Dec 2017 17:24:53 +0100 Subject: [PATCH] bump_version_set_code_name.sh: check number of parameters --- tools/development/bump_version_set_code_name.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/development/bump_version_set_code_name.sh b/tools/development/bump_version_set_code_name.sh index eb9f24c2d..273680d1a 100755 --- a/tools/development/bump_version_set_code_name.sh +++ b/tools/development/bump_version_set_code_name.sh @@ -2,7 +2,7 @@ set -e -if [[ ( -z $1 ) || ( -z $2 ) ]]; then +if (( ${#@} != 2 )); then echo Usage: mkvver newver codename exit 1 fi