Skip to content
Snippets Groups Projects
Unverified Commit b494518f authored by Todd Dembrey's avatar Todd Dembrey Committed by GitHub
Browse files

Merge pull request #16 from OpenTechFund/add-deployment-scripts

Return the value from the local call
parents c3d7226a f81132b2
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,7 @@ def _post_deploy(): ...@@ -156,7 +156,7 @@ def _post_deploy():
def _build_static(): def _build_static():
# Build a specific branch # Build a specific branch
build_branch = 'master' build_branch = 'master'
current_branch = local('git rev-parse --abbrev-ref HEAD') current_branch = local('git rev-parse --abbrev-ref HEAD', capture=True)
if current_branch != build_branch: if current_branch != build_branch:
raise RuntimeError("Please switch to '{}' before deploying".format(build_branch)) raise RuntimeError("Please switch to '{}' before deploying".format(build_branch))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment