diff options
author | maximilian attems <maks@debian.org> | 2010-06-18 12:23:37 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2010-06-18 12:23:59 +0200 |
commit | e967b03f31e784e8a8a6189c5de5d7b0e6b9bb56 (patch) | |
tree | cc02098ba11ae312a037ca93efd738a9310b968a | |
parent | d25f6105991a6865eeaa7116c9b518af3160f0b1 (diff) | |
download | initramfs-tools-e967b03f31e784e8a8a6189c5de5d7b0e6b9bb56.tar.gz initramfs-tools-e967b03f31e784e8a8a6189c5de5d7b0e6b9bb56.zip |
mkinitramfs, lsinitramfs: Better error message for non-GNU getopt
Reported-by: Michael Prokop <mika@debian.org>
Signed-off-by: maximilian attems <maks@debian.org>
-rwxr-xr-x | lsinitramfs | 2 | ||||
-rwxr-xr-x | 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" |