Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes bacon
Browse files Browse the repository at this point in the history
jaredperreault-okta committed Oct 28, 2022
1 parent d03468b commit 155a27b
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -74,8 +74,7 @@ cd ${OKTA_HOME}/${REPO}

create_log_group "Yarn Install"
# Install dependences. --ignore-scripts will prevent chromedriver from attempting to install
install=$(yarn install --frozen-lockfile --ignore-scripts)
if [$? > 0]; then
if ! yarn install --frozen-lockfile --ignore-scripts; then
echo "yarn install failed! Exiting..."
exit ${FAILED_SETUP}
fi
@@ -153,14 +152,9 @@ if [ ! -z "$WIDGET_VERSION" ]; then
fi

# only run build when installs something
match=$( echo "$install" | grep -q 'success Already up-to-date.' && echo 'matched' )
if [ "$match" = "matched" ]; then
echo 'Skipping build...'
else
create_log_group "Yarn Build"
if ! yarn build; then
echo "build failed! Exiting..."
exit ${TEST_FAILURE}
fi
finish_log_group $?
create_log_group "Yarn Build"
if ! yarn build; then
echo "build failed! Exiting..."
exit ${TEST_FAILURE}
fi
finish_log_group $?

0 comments on commit 155a27b

Please sign in to comment.