summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-05-21 20:07:08 +0200
committerJonas Smedegaard <dr@jones.dk>2011-05-21 20:07:08 +0200
commit387f7a0d3a1d675a2babe7ce4c97173d76ff0e26 (patch)
tree6485ac17378788c4ce22f1407ac9788ef7c612f0
parent957962b586598378283e6872c983ba5cb6f5389a (diff)
Emit error message in localcowbuilder-login.
-rwxr-xr-xlocalcowbuilder-login7
1 files changed, 6 insertions, 1 deletions
diff --git a/localcowbuilder-login b/localcowbuilder-login
index dbd869f..97faea4 100755
--- a/localcowbuilder-login
+++ b/localcowbuilder-login
@@ -32,9 +32,14 @@ Example: $PRG sarge_with_hacks
EOF
}
+exit1() {
+ echo "ERROR: $1"
+ exit 1
+}
+
if [ $# -eq 0 ]; then
showhelp
- exit 1
+ exit1 "not enough parameters"
fi
pool=$1