mirror of https://github.com/Hilbis/Hilbish
fix: tryrun input from -c only if its provided
parent
83bcb35dcf
commit
83591f9bba
5
main.go
5
main.go
|
@ -116,7 +116,10 @@ func main() {
|
|||
readline.Completer = readline.FilenameCompleter
|
||||
readline.LoadHistory(homedir + "/.hilbish-history")
|
||||
|
||||
RunInput(*cmdflag)
|
||||
if *cmdflag != "" {
|
||||
RunInput(*cmdflag)
|
||||
}
|
||||
|
||||
if getopt.NArgs() > 0 {
|
||||
l.SetGlobal("args", luar.New(l, getopt.Args()))
|
||||
err := l.DoFile(getopt.Arg(0))
|
||||
|
|
Loading…
Reference in New Issue