diff --git a/integ/scripts/bash/rfdk-integ-e2e.sh b/integ/scripts/bash/rfdk-integ-e2e.sh index 19463fc82..9e6ed47ee 100755 --- a/integ/scripts/bash/rfdk-integ-e2e.sh +++ b/integ/scripts/bash/rfdk-integ-e2e.sh @@ -74,7 +74,7 @@ for COMPONENT in **/cdk.json; do COMPONENT_ROOT="$(dirname "$COMPONENT")" COMPONENT_NAME=$(basename "$COMPONENT_ROOT") # Invoke hook function if it is exported and name is defined in PRE_COMPONENT_HOOK variable - if [ -n "$PRE_COMPONENT_HOOK" ] && [ "$(type -t $PRE_COMPONENT_HOOK)" == "function" ] + if [ ! -z "${PRE_COMPONENT_HOOK+x}" ] && [ "$(type -t $PRE_COMPONENT_HOOK)" == "function" ] then $PRE_COMPONENT_HOOK $COMPONENT_NAME fi