address code review comment

This commit is contained in:
Matthew R. Kasun
2022-09-12 06:42:01 -04:00
parent 7ec8c4be2a
commit 0ba3f6feaf
2 changed files with 3 additions and 3 deletions

View File

@@ -438,7 +438,7 @@ func RunCmds(commands []string, printerr bool) error {
var err error
for _, command := range commands {
//prevent panic
if command == " " {
if len(strings.Trim(command, " ")) == 0 {
continue
}
args := strings.Fields(command)