Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
jolheiser | 123857ac73 | |
jolheiser | e8303793b2 |
|
@ -12,8 +12,8 @@ import (
|
|||
|
||||
var (
|
||||
amd64Re = regexp.MustCompile(`amd64|x86_64|64-bit|[^mhv]64`)
|
||||
linuxRe = regexp.MustCompile(`linux`)
|
||||
windowsRe = regexp.MustCompile(`windows|\Awin`)
|
||||
linuxRe = regexp.MustCompile(`(?i)linux`)
|
||||
windowsRe = regexp.MustCompile(`(?i)windows|\Awin`)
|
||||
installerRe = regexp.MustCompile(`\.deb|\.msi`)
|
||||
)
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ func (m Meta) writeShellEnv(shell string) error {
|
|||
}
|
||||
tmpl = fmt.Sprintf("let-env %[1]s = ($env.%[1]s | append %%q)\n", path)
|
||||
case "sh":
|
||||
tmpl = "PATH=$PATH:%s\n"
|
||||
tmpl = "PATH=$PATH:%q\n"
|
||||
case "ps1":
|
||||
tmpl = `$env:Path = "$env:Path;%s"` + "\n"
|
||||
default:
|
||||
|
|
Reference in New Issue