summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 14c6637..4a62d8e 100644
--- a/functions
+++ b/functions
@@ -633,7 +633,7 @@ run_build_hook() {
return 1
fi
- if [[ $(type -t build) != function ]]; then
+ if ! declare -f build >/dev/null; then
error 'Hook '$script' has no build function'
return 1
fi