diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-04-18 04:09:19 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-04-22 05:43:52 +0200 |
commit | 29625b7bdb80289a0609bdd0f53b6a71dd2f5ab1 (patch) | |
tree | 7cb930e4cc84ecffd75310f7ae923ab54b5fad44 | |
parent | c7b870252e6021f7c321caad905df75aee7c63b6 (diff) | |
download | mkinitcpio-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-x | mkinitcpio | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ;; |