Skip to content

Commit

Permalink
fix: use && windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Oct 7, 2023
1 parent 3ed0ed6 commit 5b2e4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var upgradeCmd = &cobra.Command{
cmdToRun = "brew update && brew upgrade canvas-sync"
command = exec.Command("sh", "-c", cmdToRun)
} else if IsUnderScoop() {
cmdToRun = "scoop update; scoop update canvas-sync"
cmdToRun = "scoop update && scoop update canvas-sync"
command = exec.Command("cmd", "/C", cmdToRun)
} else {
pterm.Error.Printfln("Only installs via brew/scoop can be upgraded via 'canvas-sync upgrade' :(")
Expand Down

0 comments on commit 5b2e4e0

Please sign in to comment.