added the shell script suffix per os

pull/1/head
Brad Rydzewski 5 years ago
parent 2be861cc05
commit 9dc3e4fdca

@ -12,6 +12,9 @@ import (
"strings"
)
// Suffix provides the shell script suffix.
const Suffix = ".ps1"
// Command returns the Powershell command and arguments.
func Command() (string, []string) {
return "powershell", []string{

@ -14,6 +14,9 @@ import (
"strings"
)
// Suffix provides the shell script suffix.
const Suffix = ".sh"
// Command returns the shell command and arguments.
func Command() (string, []string) {
return "/bin/sh", []string{"-e"}

@ -8,6 +8,9 @@ package shell
import "github.com/drone/runner-go/shell/powershell"
// Suffix provides the shell script suffix.
const Suffix = ".ps1"
// Command returns the powershell command and arguments.
func Command() (string, []string) {
return powershell.Command()

Loading…
Cancel
Save