From 29625b7bdb80289a0609bdd0f53b6a71dd2f5ab1 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 17 Apr 2012 22:09:19 -0400 Subject: mkinitcpio: dont exit from usage Additionally, exit zero after returning. Signed-off-by: Dave Reisner --- mkinitcpio | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index 9a3c343..1281c0b 100755 --- a/mkinitcpio +++ b/mkinitcpio @@ -59,7 +59,6 @@ usage: ${0##*/} [options] -z, --compress Use an alternate compressor on the image EOF - cleanup 1 } cleanup() { @@ -142,7 +141,8 @@ while :; do shift GENIMG=$1 ;; -h|--help) - usage ;; + usage + cleanup 0 ;; -p|--preset) shift PRESET=$1 ;; -- cgit v1.2.3-24-g4f1b