Use the $SHELL value as the default value for the command param

pull/14/merge v0.5
Vasile Popescu 4 years ago
parent 46e3b440f2
commit ca450682c0

@ -17,7 +17,10 @@ import (
var log = logrus.New()
func main() {
commandName := flag.String("command", "bash", "The command to run")
commandName := flag.String("command", os.Getenv("SHELL"), "The command to run")
if *commandName == "" {
*commandName = "bash"
}
commandArgs := flag.String("args", "", "The command arguments")
logFileName := flag.String("logfile", "-", "The name of the file to log")
useTLS := flag.Bool("useTLS", true, "Use TLS to connect to the server")

Loading…
Cancel
Save