Browse Source
Merge pull request #5537 from Budibase/pro-build-fixes
Bash updates
pull/5538/head
Rory Powell
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
3 deletions
-
scripts/pro/install.sh
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
if [[ -z "${CI}" ]] then |
|
|
|
if [[ -z "${CI}" ]]; then |
|
|
|
echo 'Cannot run insall.sh unless in CI' |
|
|
|
exit 0 |
|
|
|
fi |
|
|
|
@ -15,8 +15,7 @@ git clone https://$PERSONAL_ACCESS_TOKEN@github.com/Budibase/budibase-pro.git |
|
|
|
# Community forks won't be able to clone the pro repo as they can't access secrets |
|
|
|
# Skip the rest of the installation and rely on npm version instead |
|
|
|
# This should be ok as forks will not rely on pro changes |
|
|
|
if [ -d "budibase-pro" ] |
|
|
|
then |
|
|
|
if [[ -d "budibase-pro" ]]; then |
|
|
|
cd budibase-pro |
|
|
|
|
|
|
|
# Try to checkout the matching pro branch |
|
|
|
|