Skip to content

Commit

Permalink
fix: run coreutils
Browse files Browse the repository at this point in the history
  • Loading branch information
giusdp committed Jan 12, 2024
1 parent d6d1c24 commit 1863166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func RunUtil(name string, args []string) (int, error) {
var err error
var code int
if useCoreutils() {
code, err = runCoreUtils(name, args)
code, err = runCoreUtils(full)
} else {
err, code = someutils.Call(name, full)
}
Expand All @@ -62,8 +62,8 @@ func useCoreutils() bool {
return os.Getenv("NUV_USE_COREUTILS") != ""
}

func runCoreUtils(name string, args []string) (int, error) {
cmd := exec.Command("nuv", "update", "cli")
func runCoreUtils(full []string) (int, error) {
cmd := exec.Command("coreutils", full...)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err := cmd.Run()
Expand Down

0 comments on commit 1863166

Please sign in to comment.