summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-04-18 04:09:19 +0200
committerDave Reisner <dreisner@archlinux.org>2012-04-22 05:43:52 +0200
commit29625b7bdb80289a0609bdd0f53b6a71dd2f5ab1 (patch)
tree7cb930e4cc84ecffd75310f7ae923ab54b5fad44
parentc7b870252e6021f7c321caad905df75aee7c63b6 (diff)
downloadmkinitcpio-29625b7bdb80289a0609bdd0f53b6a71dd2f5ab1.tar.gz
mkinitcpio-29625b7bdb80289a0609bdd0f53b6a71dd2f5ab1.tar.xz
mkinitcpio: dont exit from usage
Additionally, exit zero after returning. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio4
1 files 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 <program> 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 ;;