Skip to content

Commit

Permalink
Check if release directory exists before releasing, since it fails wh…
Browse files Browse the repository at this point in the history
…en it does
  • Loading branch information
asmeurer committed Dec 8, 2013
1 parent 0955700 commit 576be96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions release/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ def remove_userspace():
This should be run between runs to reset everything.
"""
run("rm -rf repos")
if os.path.exists("release"):
error("release directory already exists locally. Remove it to continue.")

@task
def checkout_cache():
Expand Down

0 comments on commit 576be96

Please sign in to comment.