From 71f5892676cf0aa39d767be26d3163f30bce5169 Mon Sep 17 00:00:00 2001 From: Patrick Dawkins Date: Fri, 10 Jan 2025 07:53:23 +0000 Subject: [PATCH] One more filepath --- commands/completion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/completion.go b/commands/completion.go index fa5d52a..8bfea45 100644 --- a/commands/completion.go +++ b/commands/completion.go @@ -3,7 +3,7 @@ package commands import ( "bytes" "fmt" - "path" + "path/filepath" "strings" "github.com/spf13/cobra" @@ -50,7 +50,7 @@ func newCompletionCommand(cnf *config.Config) *cobra.Command { pharPath, cnf.Application.Executable, ), - path.Base(pharPath), + filepath.Base(pharPath), cnf.Application.Executable, ) fmt.Fprintln(cmd.OutOrStdout(), "#compdef "+cnf.Application.Executable)