Skip to content

Commit

Permalink
only run update_repo immediately after checkout for git repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
slowriot committed Oct 19, 2021
1 parent 9698611 commit ea38f5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,9 @@ else
echo "Unable to clone git repository $repo_url - cannot continue" >&2
exit 1
fi
update_repo
fi

update_repo

echo "Site is live. Watching for source changes, refreshing every $delay seconds..."
cd "$checkout_target"
# monitor for any upstream changes and rebuild
Expand Down

0 comments on commit ea38f5b

Please sign in to comment.