diff options
author | Sebastien Luttringer <seblu@seblu.net> | 2011-06-26 19:29:13 +0200 |
---|---|---|
committer | Sebastien Luttringer <seblu@seblu.net> | 2011-06-26 23:15:56 +0200 |
commit | 643da24974067821638fd27d0f9685dffb525f21 (patch) | |
tree | 41c92369ae7031fc08e61a30eb46805483bb7e81 | |
parent | 3a65dbdaf17ff26691559fd224e66b2fbe3eee7c (diff) | |
download | mkinitcpio-643da24974067821638fd27d0f9685dffb525f21.tar.gz mkinitcpio-643da24974067821638fd27d0f9685dffb525f21.tar.xz |
Print pretty message if no help is defined in hook
Thanks to Dave Reisner for having suggested!
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
-rwxr-xr-x | mkinitcpio | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -123,6 +123,10 @@ while getopts ':c:k:sb:g:p:m:nvH:LMhS:t:z:' arg; do exit 1 fi . "${INSTDIR}/${OPTARG}" + if [[ $(type -t help) != function ]]; then + error "No help for hook ${OPTARG}" + exit 1 + fi echo "Help for hook '${OPTARG}':" help exit 0 ;; |