From 740f29de8fa0b432d9468e2bf87b83a3c403f37a Mon Sep 17 00:00:00 2001 From: drebs Date: Sat, 12 Mar 2011 18:15:40 -0300 Subject: fixing modules script --- templates/bin/puppet-bootstrap | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/bin/puppet-bootstrap b/templates/bin/puppet-bootstrap index 6f93ed4..9c385f3 100644 --- a/templates/bin/puppet-bootstrap +++ b/templates/bin/puppet-bootstrap @@ -1,7 +1,7 @@ #!/bin/sh function usage { - echo "Usage: $1 add-submodules" + echo "Usage: $1 add-submodules " exit $2 } @@ -20,11 +20,7 @@ function add_submodules { done } -if [ $# -eq 1 ]; then - puppet_dir=$1 -elif [ $# -lt 1 ]; then - puppet_dir=<%= puppet_dir %> -else +if [ $# -ne 2 ]; then usage $0 1 exit 1 fi -- cgit v1.2.3