fix: command not found in shell (#3438)

This commit is contained in:
n-i-x
2024-08-30 15:24:45 -04:00
committed by GitHub
parent 7de6bc4a91
commit 121d9abecd

View File

@@ -12,7 +12,7 @@ import (
func ParseCommand(s *settings.Settings, raw string) ([]string, error) {
var command []string
if len(s.Shell) == 0 {
if len(s.Shell) == 0 || s.Shell[0] == "" {
cmd, args, err := SplitCommandAndArgs(raw)
if err != nil {
return nil, err