Skip to content

Commit

Permalink
When creating the command struct, set ShellBang to runtime.GOOS=plan9
Browse files Browse the repository at this point in the history
Signed-off-by: Ronald G. Minnich <[email protected]>
  • Loading branch information
rminnich committed Dec 8, 2024
1 parent dc7520e commit 517bc24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/mkuimage/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"log"
"log/slog"
"os"
"runtime"

"github.com/dustin/go-humanize"
"github.com/u-root/gobusybox/src/pkg/golang"
Expand Down Expand Up @@ -62,7 +63,7 @@ func main() {

env := golang.Default(golang.DisableCGO())
f := &mkuimage.Flags{
Commands: mkuimage.CommandFlags{Builder: "bb"},
Commands: mkuimage.CommandFlags{Builder: "bb", ShellBang: runtime.GOOS == "plan9"},
ArchiveFormat: "cpio",
OutputFile: defaultFile(env),
}
Expand Down

0 comments on commit 517bc24

Please sign in to comment.