Skip to content

Commit

Permalink
Rebuild client only if there are changes
Browse files Browse the repository at this point in the history
in the client/ directory since the last build.
  • Loading branch information
nsoranzo committed Mar 13, 2018
1 parent 4fc6380 commit 1dfaa47
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/common_startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,8 @@ if [ $SKIP_CLIENT_BUILD -eq 0 ]; then
if [ "$GIT_BRANCH" = "0" ]; then
SKIP_CLIENT_BUILD=1
else
# Compare hash.
githash=$(git rev-parse HEAD)
statichash=$(cat static/client_build_hash.txt)
if [ "$githash" = "$statichash" ]; then
# Check if anything has changed in client/ since the last build
if git diff --quiet $(cat static/client_build_hash.txt) -- client/; then
SKIP_CLIENT_BUILD=1
else
echo "The Galaxy client is out of date and will be built now."
Expand Down

0 comments on commit 1dfaa47

Please sign in to comment.