Skip to content

Commit

Permalink
fix: shell option (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
anoriqq authored Jan 7, 2024
1 parent f94b67c commit 121c45f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmd/qpm/internal/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
},
Expand Down
4 changes: 3 additions & 1 deletion cmd/qpm/internal/cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
},
Expand Down

0 comments on commit 121c45f

Please sign in to comment.