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

25 lines
526 B
Bash
Executable file

#!/bin/bash
if [[ -z "${CI}" ]]; then
echo 'Cannot run insall.sh unless in CI'
exit 0
fi
BRANCH=$1
BASE_BRANCH=$2
cd ../
echo "Cloning pro repo..."
git clone https://$PERSONAL_ACCESS_TOKEN@github.com/Budibase/budibase-pro.git
cd budibase-pro
# Try to checkout the matching pro branch
git checkout $BRANCH
# Try to checkout the matching pro base (master or develop) branch
git checkout $BASE_BRANCH
# If neither branch exists continue with default branch 'develop'
git pull
echo "Initializing pro repo..."
yarn setup