summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorblsaws <bryan.sullivan@att.com>2016-03-31 17:20:58 -0700
committerblsaws <bryan.sullivan@att.com>2016-03-31 17:20:58 -0700
commite881d5e184e79cfe13126b2c5b3b216b56346a8b (patch)
tree881c5e0a6231d9621d07ceb3e570222daabfb5af /components
parent3df70d5c53a7e9183f2d394af0fae9c3e3fd047d (diff)
Add check for at least one parameter.
JIRA: COPPER-2 Change-Id: Ib4af5b1471fef8dc105a87dac44a6ca4849dd316 Signed-off-by: blsaws <bryan.sullivan@att.com>
Diffstat (limited to 'components')
-rw-r--r--components/congress/joid/install_congress_1.sh5
1 files changed, 5 insertions, 0 deletions
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 <controller_hostname>
# <controller_hostname> 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