summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio8
1 files changed, 1 insertions, 7 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 54b39d9..677f608 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -321,13 +321,7 @@ for hook in ${HOOKS}; do
if [[ -r "${INSTDIR}/${hook}" ]]; then
. "${INSTDIR}/${hook}"
msg2 "Parsing hook: [%s]" "$hook"
- if [[ $(type -t install) = 'function' ]]; then
- warning "Hook '%s' uses a deprecated 'install' function. This should be renamed 'build'" "$hook"
- install
- unset install
- else
- build
- fi
+ build
parse_hook
else
error "Hook '$hook' can not be found."