From e881d5e184e79cfe13126b2c5b3b216b56346a8b Mon Sep 17 00:00:00 2001 From: blsaws Date: Thu, 31 Mar 2016 17:20:58 -0700 Subject: Add check for at least one parameter. JIRA: COPPER-2 Change-Id: Ib4af5b1471fef8dc105a87dac44a6ca4849dd316 Signed-off-by: blsaws --- components/congress/joid/install_congress_1.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'components/congress') diff --git a/components/congress/joid/install_congress_1.sh b/components/congress/joid/install_congress_1.sh index f93a1f9..7bf45af 100644 --- a/components/congress/joid/install_congress_1.sh +++ b/components/congress/joid/install_congress_1.sh @@ -22,6 +22,11 @@ # source ~/git/copper/components/congress/joid/install_congress_1.sh # is the name of the controller node in MAAS. +if [ $# -lt 1 ]; then + echo 1>&2 "$0: not enough arguments" + return 2 +fi + set -x # Create the congress container -- cgit 1.2.3-korg