summaryrefslogtreecommitdiff
path: root/localcowbuilder-update
diff options
context:
space:
mode:
Diffstat (limited to 'localcowbuilder-update')
-rwxr-xr-xlocalcowbuilder-update16
1 files changed, 13 insertions, 3 deletions
diff --git a/localcowbuilder-update b/localcowbuilder-update
index 6831473..b3cedcb 100755
--- a/localcowbuilder-update
+++ b/localcowbuilder-update
@@ -1,9 +1,19 @@
#!/bin/sh
+set -e
+
+PRG=$(basename "$0")
+
+function showhelp() {
+ cat <<EOF
+Usage: $(basename $0) POOL
+
+Example: $(basename $0) sarge_with_hacks
+EOF
+}
+
if [ $# -eq 0 ]; then
- echo "Usage: $(basename $0) POOL"
- echo ""
- echo "Example: $(basename $0) sarge_with_hacks"
+ showhelp
exit 1
fi