Skip to content
Browse files

Better deletion of existing files before linking again

  • Loading branch information...
1 parent 7a7b30a commit 1e9257457040583e1c637d3521762c4c6bf074d0 @tomasr committed Mar 31, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 scripts/dotfileslink.ps1
View
3 scripts/dotfileslink.ps1
@@ -11,9 +11,8 @@ ls "$h\dotfiles" | %{
if ( $_.PSIsContainer ) {
# try to unlink first
linkd.exe "$h\$($_.Name)" /d
- } else {
- rm -r -force "$h\$($_.Name)"
}
+ rm -r -force "$h\$($_.Name)"
}
if ( $_.PSIsContainer ) {
linkd.exe "$h\$($_.Name)" $_.FullName

0 comments on commit 1e92574

Please sign in to comment.
Something went wrong with that request. Please try again.