Fixes problems with stubs on bash.
This commit is contained in:
parent
f151d4bcca
commit
06ccb851f8
1 changed files with 4 additions and 1 deletions
|
|
@ -531,7 +531,10 @@ proc installFromDir(dir: string, latest: bool, options: TOptions,
|
|||
contents.add "chcp 65001\n"
|
||||
contents.add "\"" & pkgDestDir / bin & "\" %*\n"
|
||||
writeFile(dest, contents)
|
||||
writeFile(dest.changeFileExt(""), contents) # For Git bash.
|
||||
# For bash on Windows (Cygwin/Git bash).
|
||||
let bashDest = dest.changeFileExt("")
|
||||
echo("Creating Cygwin stub: ", pkgDestDir / bin, " -> ", bashDest)
|
||||
writeFile(bashDest, "\"" & pkgDestDir / bin & "\" \"$@\"\n")
|
||||
else:
|
||||
{.error: "Sorry, your platform is not supported.".}
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue