Commit 523b3bc4 authored by Shenghou Ma's avatar Shenghou Ma

misc/dashboard/builder: handle Plan 9 in defaultSuffix()

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9495045
parent b419e2b5
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment