Skip to content

Commit

Permalink
Merge pull request #554 from discoverfinancial/update-sdk
Browse files Browse the repository at this point in the history
Update update-sdk.sh to allow you to specify a branch name
  • Loading branch information
smithbk authored Sep 15, 2023
2 parents 90c9d14 + 2a6618f commit 6745009
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions code/update-sdk.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Script that pulls the latest version of the SDK into your ThemeBuilder
# To be used if there are any issues arise with pulling the latest SDK in your ThemeBuilder build
CUR_DIR=`pwd`
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
BRANCH=main
if [ $# -gt 0 ]; then
BRANCH=$1
fi
SDK=a11y-theme-builder-sdk
cd ../../$SDK
git checkout main
cd $SCRIPT_DIR/../../$SDK
git checkout $BRANCH
git pull --rebase --autostash
npm run build-lib
cd $CUR_DIR
cd $SCRIPT_DIR
rm -rf src/ui/node_modules/.cache
rm -rf src/ui/node_modules/$SDK
cp -R ../../$SDK src/ui/node_modules

0 comments on commit 6745009

Please sign in to comment.