From 8afdf128307daea8cc0454cec6612184838541e2 Mon Sep 17 00:00:00 2001 From: Devin Pastoor Date: Thu, 9 Jun 2022 11:33:47 -0400 Subject: [PATCH] fixup: actually cmd --- cmd/use.go | 2 +- internal/config/fs.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/use.go b/cmd/use.go index 7389b0e..616395e 100644 --- a/cmd/use.go +++ b/cmd/use.go @@ -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) { diff --git a/internal/config/fs.go b/internal/config/fs.go index c9e1b88..4e27deb 100644 --- a/internal/config/fs.go +++ b/internal/config/fs.go @@ -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 {