This commit is contained in:
Smart-SangGe 2022-08-07 20:40:29 +08:00
parent 43b3bcc539
commit 08cddb89f5
2 changed files with 3 additions and 1 deletions

View File

@ -120,6 +120,8 @@ func execInput(input string) error {
return nil return nil
case "exit": case "exit":
os.Exit(0) os.Exit(0)
case "":
return nil
} }
// Prepare the command to execute. // Prepare the command to execute.

View File

@ -2,4 +2,4 @@ from golang:latest
copy . /go copy . /go
run go build -o console console.go run go build -o console console.go
expose 4444 expose 4444
# entrypoint ./console entrypoint /bin/bash