Blame 0022-dracut.sh-output-unknown-argument.patch

Harald Hoyer d1bf89
From 1d2c070071996dc6a31e4981b770e01746fa0ff0 Mon Sep 17 00:00:00 2001
Harald Hoyer d1bf89
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer d1bf89
Date: Fri, 15 Jun 2012 11:11:10 +0200
Harald Hoyer d1bf89
Subject: [PATCH] dracut.sh: output unknown argument
Harald Hoyer d1bf89
Harald Hoyer d1bf89
---
Harald Hoyer d1bf89
 dracut.sh |    1 +
Harald Hoyer d1bf89
 1 file changed, 1 insertion(+)
Harald Hoyer d1bf89
Harald Hoyer d1bf89
diff --git a/dracut.sh b/dracut.sh
Harald Hoyer d1bf89
index c26e0f8..309fd7d 100755
Harald Hoyer d1bf89
--- a/dracut.sh
Harald Hoyer d1bf89
+++ b/dracut.sh
Harald Hoyer d1bf89
@@ -289,6 +289,7 @@ while (($# > 0)); do
Harald Hoyer d1bf89
             elif ! [[ ${kernel+x} ]]; then
Harald Hoyer d1bf89
                 kernel=$1
Harald Hoyer d1bf89
             else
Harald Hoyer d1bf89
+                echo "Unknown argument: $1"
Harald Hoyer d1bf89
                 usage; exit 1;
Harald Hoyer d1bf89
             fi
Harald Hoyer d1bf89
             ;;