summaryrefslogtreecommitdiff
path: root/buildscripts/build/build_front.sh
diff options
context:
space:
mode:
authorSimponic <elizabeth.hunt@simponic.xyz>2023-02-11 23:37:47 -0700
committerSimponic <elizabeth.hunt@simponic.xyz>2023-02-11 23:37:47 -0700
commit7568b614447eb0d6f93a578837d1d5ea79e71936 (patch)
tree3849fb0f773f4fec0c77f32025048f3bd55a6a6e /buildscripts/build/build_front.sh
parente5ac660413fd8e2879706cfb06c476aae9164b31 (diff)
downloadchessh-7568b614447eb0d6f93a578837d1d5ea79e71936.tar.gz
chessh-7568b614447eb0d6f93a578837d1d5ea79e71936.zip
Format buildscripts (pretty unsubstantial but needed to happen :3)
Diffstat (limited to 'buildscripts/build/build_front.sh')
-rwxr-xr-xbuildscripts/build/build_front.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/buildscripts/build/build_front.sh b/buildscripts/build/build_front.sh
index ed3cb8b..117f302 100755
--- a/buildscripts/build/build_front.sh
+++ b/buildscripts/build/build_front.sh
@@ -23,8 +23,8 @@ server {
# Grab deps
if [ $(which node) == "" ]
then
- curl -sSL https://deb.nodesource.com/setup_16.x | sudo bash -
- sudo apt install -y nodejs
+ curl -sSL https://deb.nodesource.com/setup_16.x | sudo bash -
+ sudo apt install -y nodejs
fi
[ "$(which git)" != "" ] || sudo apt install -y git
[ "$(which nginx)" != "" ] || sudo apt install -y nginx
@@ -32,16 +32,16 @@ fi
# Checkout source
if [ ! -d $chessh_path ]
then
- mkdir -p $chessh_path
- cd $chessh_path
- git init
- git remote add origin $chessh_source
- git pull origin
- git checkout main
- git config pull.rebase true
+ mkdir -p $chessh_path
+ cd $chessh_path
+ git init
+ git remote add origin $chessh_source
+ git pull origin
+ git checkout main
+ git config pull.rebase true
else
- cd $chessh_path
- git pull origin main
+ cd $chessh_path
+ git pull origin main
fi
# Build