From 24c94be90c99adbcf4a67e5d7aa9b360cae9af4b Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 3 Jan 2020 10:44:35 -0800 Subject: scripts: Check that we got the right number of parameters --- scripts/commit.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/commit.sh') diff --git a/scripts/commit.sh b/scripts/commit.sh index b2798b3b..1d4124a7 100644 --- a/scripts/commit.sh +++ b/scripts/commit.sh @@ -1,5 +1,10 @@ set -e +if [ "$#" != 4 ] ; then + echo 'usage: commit.sh repo branch tag out' >&2 + exit 2 +fi + repo=$1 branch=$2 tag=$3 -- cgit v1.2.3