mirror of
https://github.com/tjboldt/Apple2-IO-RPi.git
synced 2024-11-25 06:31:22 +00:00
Set default for RPI command to return help info
This commit is contained in:
parent
285d23af55
commit
cc2aa9954e
@ -32,6 +32,9 @@ func ExecCommand() {
|
|||||||
linuxCommand = strings.ToLower(linuxCommand)
|
linuxCommand = strings.ToLower(linuxCommand)
|
||||||
}
|
}
|
||||||
linuxCommand = strings.Trim(linuxCommand, " ")
|
linuxCommand = strings.Trim(linuxCommand, " ")
|
||||||
|
if linuxCommand == "" {
|
||||||
|
linuxCommand = "a2help"
|
||||||
|
}
|
||||||
fmt.Printf("Command to run: %s\n", linuxCommand)
|
fmt.Printf("Command to run: %s\n", linuxCommand)
|
||||||
if strings.HasPrefix(linuxCommand, "cd ") {
|
if strings.HasPrefix(linuxCommand, "cd ") {
|
||||||
workingDirectory = strings.Replace(linuxCommand, "cd ", "", 1)
|
workingDirectory = strings.Replace(linuxCommand, "cd ", "", 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user