setup.sh: fatal: Undefined variable

define hook arrays before assigning to them
This commit is contained in:
happysalada 2021-06-25 19:12:58 +09:00 committed by Raphael Megzari
parent bf99a819a1
commit 9f156d0adc

View file

@ -312,6 +312,10 @@ declare -a pkgTargetHookVars=(envTargetTargetHook)
declare -a pkgHookVarVars=(pkgBuildHookVars pkgHostHookVars pkgTargetHookVars)
# those variables are declared here, since where and if they are used varies
# shellcheck disable=SC2034
declare -a preFixupHooks fixupOutputHooks preConfigureHooks postFixupHooks postUnpackHooks unpackCmdHooks
# Add env hooks for all sorts of deps with the specified host offset.
addEnvHooks() {
local depHostOffset="$1"