mirror of
https://github.com/golang/go
synced 2024-11-12 07:00:21 -07:00
misc/dashboard/builder: handle Plan 9 in defaultSuffix()
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9495045
This commit is contained in:
parent
b419e2b57c
commit
523b3bc434
@ -608,10 +608,14 @@ func repoURL(importPath string) string {
|
||||
// defaultSuffix returns file extension used for command files in
|
||||
// current os environment.
|
||||
func defaultSuffix() string {
|
||||
if runtime.GOOS == "windows" {
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
return ".bat"
|
||||
case "plan9":
|
||||
return ".rc"
|
||||
default:
|
||||
return ".bash"
|
||||
}
|
||||
return ".bash"
|
||||
}
|
||||
|
||||
// defaultBuildRoot returns default buildroot directory.
|
||||
|
Loading…
Reference in New Issue
Block a user