mirror of
https://github.com/b4tman/armhf-alpine-qemu.git
synced 2026-06-29 14:16:12 +03:00
make the entrypoint work regardless of install path
from: https://github.com/balena-io-library/armv7hf-debian-qemu/commit/30c52e7daf6f83ded800a2643bf4663fbc062f2d
This commit is contained in:
+4
-1
@@ -4,6 +4,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
filepath "path/filepath"
|
||||||
"syscall"
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -38,7 +39,9 @@ func runShell() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
switch os.Args[0] {
|
command := filepath.Base(os.Args[0])
|
||||||
|
|
||||||
|
switch command {
|
||||||
case "cross-build-start":
|
case "cross-build-start":
|
||||||
crossBuildStart()
|
crossBuildStart()
|
||||||
case "cross-build-end":
|
case "cross-build-end":
|
||||||
|
|||||||
Reference in New Issue
Block a user