From e967b03f31e784e8a8a6189c5de5d7b0e6b9bb56 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Fri, 18 Jun 2010 12:23:37 +0200 Subject: mkinitramfs, lsinitramfs: Better error message for non-GNU getopt Reported-by: Michael Prokop Signed-off-by: maximilian attems --- lsinitramfs | 2 +- mkinitramfs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lsinitramfs b/lsinitramfs index 3fcc50c..91c65e1 100755 --- a/lsinitramfs +++ b/lsinitramfs @@ -16,7 +16,7 @@ cpio_args="--extract --quiet --list" OPTIONS=`getopt -o hl --long help,long -n "$0" -- "$@"` # Check for non-GNU getopt -if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi +if [ $? != 0 ] ; then echo "W: non-GNU getopt" >&2 ; exit 1 ; fi eval set -- "$OPTIONS" diff --git a/mkinitramfs b/mkinitramfs index 9af5bfd..e49e01c 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -14,7 +14,7 @@ export BUSYBOXDIR OPTIONS=`getopt -o c:d:ko:r:v -n "$0" -- "$@"` # Check for non-GNU getopt -if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi +if [ $? != 0 ] ; then echo "W: non-GNU getopt" >&2 ; exit 1 ; fi eval set -- "$OPTIONS" -- cgit v1.2.3