Skip to content

Commit

Permalink
Merge pull request #5679 from nsoranzo/git_diff_client
Browse files Browse the repository at this point in the history
Rebuild client only if there are changes
  • Loading branch information
dannon committed Mar 13, 2018
2 parents 4fc6380 + 1dfaa47 commit 1cc5f3f
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 1cc5f3f

Please sign in to comment.