Skip to content

Commit

Permalink
fixes broken symlink issue (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Aug 30, 2024
1 parent c3aff2a commit dd8389b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nimblepkg/packageinstaller.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ proc setupBinSymlink*(symlinkDest, symlinkFilename: string,
when defined(unix):
display("Creating", "symlink: $1 -> $2" %
[symlinkDest, symlinkFilename], priority = MediumPriority)
if fileExists(symlinkFilename):
if fileExists(symlinkFilename) or symlinkExists(symlinkFilename):
let msg = "Symlink already exists in $1. Replacing." % symlinkFilename
display("Warning:", msg, Warning, HighPriority)
removeFile(symlinkFilename)
Expand Down

0 comments on commit dd8389b

Please sign in to comment.