Merge pull request #218 from yglukhov/cygwin-stub-fix

Fixed cygwin stub
This commit is contained in:
Dominik Picheta 2016-03-18 17:53:51 +00:00
commit cdc81f3371

View file

@ -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: