Skip to content

Commit 91a7b1d

Browse files
committed
Add generator support for FreeBSD
Signed-off-by: Doug Rabson <[email protected]>
1 parent 6101371 commit 91a7b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type ExportOptions struct {
4242
// New creates a configuration Generator with the default
4343
// configuration for the target operating system.
4444
func New(os string) (generator Generator, err error) {
45-
if os != "linux" && os != "solaris" && os != "windows" {
45+
if os != "linux" && os != "solaris" && os != "windows" && os != "freebsd" {
4646
return generator, fmt.Errorf("no defaults configured for %s", os)
4747
}
4848

@@ -72,7 +72,7 @@ func New(os string) (generator Generator, err error) {
7272
}
7373
}
7474

75-
if os == "linux" || os == "solaris" {
75+
if os == "linux" || os == "solaris" || os == "freebsd" {
7676
config.Process.User = rspec.User{}
7777
config.Process.Env = []string{
7878
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",

0 commit comments

Comments
 (0)