Skip to content

Commit

Permalink
Prompt to delete BRAINSTools build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Jul 17, 2018
1 parent cdb1874 commit 489f52d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pnlpipe_software/BRAINSTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ def make(commit=DEFAULT_HASH, delete=False):
# chmod('a-w', out)
symlink.unlink()
out.symlink(symlink)
if delete:
blddir.delete()
if sys.flags.interactive:
if input("Delete build directory? [y/N]") == "y":
blddir.delete()
log.info("Made '{}'".format(get_path(sha)))
log.info("Made '{}'".format(symlink))

Expand Down

0 comments on commit 489f52d

Please sign in to comment.