Skip to content

Commit 2e844a7

Browse files
committed
fixup
1 parent 616d1ba commit 2e844a7

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

scripts/bootstrap.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)