File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,18 +33,8 @@ link() {
3333 if [ -L " $dst " ] && [ " $dst " -ef " $src " ]; then
3434 return 0
3535 fi
36- # If $dst exists as a real file/dir (not a symlink), refuse to wipe it
37- # unless the user opted in. Prevents bootstrap from silently destroying
38- # actual data (e.g. an existing ~/.ipython with shell history) on first
39- # run on a fresh machine.
40- if [ -e " $dst " ] && [ ! -L " $dst " ]; then
41- if [ " ${BOOTSTRAP_OVERWRITE:- 0} " != " 1" ]; then
42- print_message " 31" " Refusing to replace existing $dst (not a symlink). Move it aside or rerun with BOOTSTRAP_OVERWRITE=1."
43- return 1
44- fi
36+ if [ -e " $dst " ] || [ -L " $dst " ]; then
4537 rm -rf " $dst "
46- elif [ -L " $dst " ]; then
47- rm -f " $dst "
4838 fi
4939 if [ " $OS " = windows ]; then
5040 ln -sfn " $( cygpath -w " $src " ) " " $dst "
You can’t perform that action at this time.
0 commit comments