Skip to content

Commit

Permalink
Update build.sh to force update
Browse files Browse the repository at this point in the history
  • Loading branch information
ericthelemur committed Nov 8, 2023
1 parent dcda937 commit 8084734
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ set -e

export SCRIPT_DIR=$(dirname "$(realpath $0)")
cd $SCRIPT_DIR && echo "Running in $SCRIPT_DIR"
if [ -z $NO_PULL ]; then git pull --force --recurse-submodules; fi
if [ -z $NO_PULL ]; then
git fetch --all --prune
git reset --hard origin/master
git pull --recurse-submodules
fi

# Build main
./zola build --base-url https://warwickspeed.run --output-dir ../build --force
Expand Down

0 comments on commit 8084734

Please sign in to comment.