Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(integ): fix when PRE_COMPONENT_HOOK is undefined #166

Merged
merged 1 commit into from
Oct 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integ/scripts/bash/rfdk-integ-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down