fix: aliases in sh interp exec handler

pull/61/head v0.5.0
sammyette 2021-06-12 11:52:56 -04:00
parent 81f7b77b8b
commit 36ea20b550
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ func execCommand(cmd string) error {
if aliases[args[0]] != "" {
alias := aliases[args[0]]
argstring = alias + strings.TrimPrefix(argstring, args[0])
args[0] = alias
cmdArgs, _ := splitInput(argstring)
args = cmdArgs
}
// If command is defined in Lua then run it