Skip to content

Commit 576be96

Browse files
committed
Check if release directory exists before releasing, since it fails when it does
1 parent 0955700 commit 576be96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

release/fabfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ def remove_userspace():
150150
This should be run between runs to reset everything.
151151
"""
152152
run("rm -rf repos")
153+
if os.path.exists("release"):
154+
error("release directory already exists locally. Remove it to continue.")
153155

154156
@task
155157
def checkout_cache():

0 commit comments

Comments
 (0)