Skip to content

Commit 037916c

Browse files
committedMar 14, 2016
Always replace broken links
1 parent 9c02333 commit 037916c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def process_package(dotfile_root, dirname, test=False):
4242
prompt = 'Replace {0}? ({1})'.format(dst, os.readlink(dst))
4343
else:
4444
prompt = 'Replace {0}?'.format(dst)
45-
if confirm(prompt):
45+
if not os.path.exists(dst) or confirm(prompt):
4646
try:
4747
if not os.path.islink(dst) and os.path.isdir(dst):
4848
print('| rm -rf ' + dst)

0 commit comments

Comments
 (0)
Please sign in to comment.