diff --git a/cmd/qpm/internal/cmd/install.go b/cmd/qpm/internal/cmd/install.go index 094acf4..3e74639 100644 --- a/cmd/qpm/internal/cmd/install.go +++ b/cmd/qpm/internal/cmd/install.go @@ -57,7 +57,9 @@ func init() { } cfg := c - cfg.Shell = []string{shell} + if shell != "" { + cfg.Shell = []string{shell} + } return qpm.Execute(cfg, s, qpm.Install, bufio.NewWriter(os.Stdout), bufio.NewWriter(os.Stderr)) }, diff --git a/cmd/qpm/internal/cmd/uninstall.go b/cmd/qpm/internal/cmd/uninstall.go index 43bf11b..a14a17e 100644 --- a/cmd/qpm/internal/cmd/uninstall.go +++ b/cmd/qpm/internal/cmd/uninstall.go @@ -40,7 +40,9 @@ func init() { } cfg := c - cfg.Shell = []string{shell} + if shell != "" { + cfg.Shell = []string{shell} + } return qpm.Execute(cfg, s, qpm.Uninstall, bufio.NewWriter(os.Stdout), bufio.NewWriter(os.Stderr)) },