From b13b510cf1f829d1019aa2a5e40897ea9b0204ea Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 7 Jun 2023 22:04:18 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20handle=20empty=20commands?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmux/project.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tmux/project.go b/tmux/project.go index 3e2b916..4336cdb 100644 --- a/tmux/project.go +++ b/tmux/project.go @@ -202,6 +202,9 @@ func (p *Project) GetRoot() string { func (p *Project) RunCommands(commands []string) { for _, command := range commands { + if command == "" { + continue + } args := strings.Fields(command) cmd := exec.Command(args[0], args[1:]...) cmd.Dir = p.GetRoot()