From acf2192cc82b254a7529e651e5ae1f92d92dd8c6 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 14 Nov 2012 13:39:59 +0100 Subject: buildfile: check required argument count --- buildfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildfile b/buildfile index d19d4eb..aba1005 100755 --- a/buildfile +++ b/buildfile @@ -9,6 +9,11 @@ if [ "$1" = "-v" ]; then shift fi +if [ -z "$1" -o -z "$2" ]; then + echo "Usage: $0 " + exit 1 +fi + bcfg2-info -Q "$REPO" buildfile "$@" | \ if [ "$verbose" = "1" ]; then awk '//{print}' -- cgit v1.2.3-1-g7c22