aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/bin/puppet-bootstrap8
1 files changed, 2 insertions, 6 deletions
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 <DIR>"
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