summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index e20dff5..c468835 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -178,7 +178,7 @@ while :; do
shift
if script=$(find_in_dirs "$1" "${INSTDIR[@]}"); then
. "$script"
- if [[ $(type -t help) != function ]]; then
+ if ! declare -f help >/dev/null; then
error "No help for hook $1"
exit 1
fi