Skip to content

Commit

Permalink
fixup: actually cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
dpastoor committed Jun 9, 2022
1 parent 1291b63 commit 8afdf12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/use.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func newUse(useOpts useOpts, version string) error {
}
quartoExe := "quarto"
if runtime.GOOS == "windows" {
quartoExe = "quarto.exe"
quartoExe = "quarto.cmd"
}
err = os.Remove(filepath.Join(config.GetPathToActiveBinDir(), quartoExe))
if err != nil && !os.IsNotExist(err) {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func GetInstalledVersions() (map[string]string, error) {
if entry.IsDir() {
quartoExe := "quarto"
if runtime.GOOS == "windows" {
quartoExe = "quarto.exe"
quartoExe = "quarto.cmd"
}
quartoPath := filepath.Join(GetPathToVersionsDir(), entry.Name(), "bin", quartoExe)
if _, err := os.Stat(quartoPath); err == nil {
Expand Down

0 comments on commit 8afdf12

Please sign in to comment.