mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
parent
6671bb8be4
commit
9ae86dc3fc
@ -19,7 +19,7 @@ runHook() {
|
||||
if [[ "$hookName" =~ Hook$ ]]; then var+=s; else var+=Hooks; fi
|
||||
eval "local -a dummy=(\"\${$var[@]}\")"
|
||||
for hook in "_callImplicitHook 0 $hookName" "${dummy[@]}"; do
|
||||
if ! _eval "$hook" "$@"; then return 1; fi
|
||||
_eval "$hook" "$@"
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user