From cc2aa9954ecae0b90da69f97be02c2a68b6166ec Mon Sep 17 00:00:00 2001 From: Terence Boldt Date: Tue, 28 Dec 2021 16:26:59 -0500 Subject: [PATCH] Set default for RPI command to return help info --- RaspberryPi/apple2driver/handlers/exec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RaspberryPi/apple2driver/handlers/exec.go b/RaspberryPi/apple2driver/handlers/exec.go index b5839eb..66c1692 100644 --- a/RaspberryPi/apple2driver/handlers/exec.go +++ b/RaspberryPi/apple2driver/handlers/exec.go @@ -32,6 +32,9 @@ func ExecCommand() { linuxCommand = strings.ToLower(linuxCommand) } linuxCommand = strings.Trim(linuxCommand, " ") + if linuxCommand == "" { + linuxCommand = "a2help" + } fmt.Printf("Command to run: %s\n", linuxCommand) if strings.HasPrefix(linuxCommand, "cd ") { workingDirectory = strings.Replace(linuxCommand, "cd ", "", 1)