From bedae4587d9245e4bca9efb1eb613738c6ae4cc5 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 11 Oct 2021 00:24:51 +0300 Subject: [PATCH] fix exec --- resin-xbuild.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resin-xbuild.go b/resin-xbuild.go index a7f4c67..5ce75ad 100644 --- a/resin-xbuild.go +++ b/resin-xbuild.go @@ -31,7 +31,7 @@ func crossBuildEnd() { } func runShell() error { - cmd := exec.Command("/usr/bin/qemu-arm-static", append([]string{"-execve", "-0", os.Args[0], "/bin/sh", "/bin/sh"}, os.Args[1:]...)...) + cmd := exec.Command("/usr/bin/qemu-arm-static", append([]string{"-execve", "-0", os.Args[0], "/bin/sh"}, os.Args[1:]...)...) cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr