Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Oct 30, 2023
1 parent c6f1206 commit 4c54151
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ if [ ! -z "$AUTHJS_VERSION" ]; then
rm -rf ./node_modules/@okta/okta-auth-js
json=$(cat ./package.json | jq 'del(.dependencies["@okta/okta-auth-js"])')
printf '%s\n' "${json}" > ./package.json
popd

if ! siw-platform install-artifact -n @okta/okta-auth-js -v ${AUTHJS_VERSION} ; then
echo "AUTHJS_VERSION could not be installed: ${AUTHJS_VERSION}"
exit ${FAILED_SETUP}
fi
if ! siw-platform install-artifact -n @okta/okta-auth-js -v ${AUTHJS_VERSION} ; then
echo "AUTHJS_VERSION could not be installed: ${AUTHJS_VERSION}"
exit ${FAILED_SETUP}
fi

pushd ./src/v3
json_v3=$(cat ./package.json | jq --arg ver $AUTHJS_VERSION '.dependencies["@okta/okta-auth-js"] = $ver')
printf '%s\n' "${json_v3}" > ./package.json
popd
Expand Down

0 comments on commit 4c54151

Please sign in to comment.