diff --git a/src/nimble.nim b/src/nimble.nim index 2e604ac..cecd80e 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -439,7 +439,7 @@ proc installFromDir(dir: string, latest: bool, options: Options, # For bash on Windows (Cygwin/Git bash). let bashDest = dest.changeFileExt("") echo("Creating Cygwin stub: ", pkgDestDir / bin, " -> ", bashDest) - writeFile(bashDest, "\"" & pkgDestDir / bin & "\" \"$@\"\n") + writeFile(bashDest, "\"$(cygpath '" & pkgDestDir / bin & "')\" \"$@\"\l") else: {.error: "Sorry, your platform is not supported.".} else: