1
0
mirror of https://github.com/b4tman/armhf-alpine-qemu.git synced 2025-09-24 09:49:06 +00:00

make the entrypoint work regardless of install path

from: 30c52e7daf
This commit is contained in:
2021-10-10 23:39:43 +03:00
committed by Dmitry Belyaev
parent 2c343c091b
commit c6545f9846

View File

@@ -3,7 +3,8 @@ package main
import ( 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":