1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00
budibase/scripts/pro/install.sh
2022-04-21 21:55:16 +01:00

21 lines
416 B
Bash
Executable file

if [[ -z "${CI}" ]]; then
echo 'Cannot run insall.sh unless in CI'
exit 0
fi
BRANCH=$1
cd ../
echo "Cloning pro repo..."
git clone git@github.com:Budibase/budibase-pro.git
cd budibase-pro
echo "Checkout branch $BRANCH"
# Try to checkout the matching pro branch
# If branch does not exist we will continue with default branch 'develop'
git checkout $BRANCH
git pull
echo "Initializing pro repo..."
yarn setup