DEVELOPMENT ENVIRONMENT

~liljamo/tamma

a1a7bb5bab0e51703bf036afc797b8a7ea654b79 — Jonni Liljamo 6 months ago dc8354a
fix: run exec in sh
1 files changed, 1 insertions(+), 3 deletions(-)

M main.go
M main.go => main.go +1 -3
@@ 12,7 12,6 @@ import (
	"fmt"
	"os"
	"os/exec"
	"strings"

	"git.src.quest/~skye/tamma/styles"
	"git.src.quest/~skye/tamma/types"


@@ 71,8 70,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
					if err != nil {
						m.err = err.Error()
					} else {
						args := strings.Fields(execString)
						c := exec.Command(args[0], args[1:]...)
						c := exec.Command("sh", "-c", execString)
						return m, tea.ExecProcess(c, func(err error) tea.Msg {
							return execFinishedMsg{err}
						})