Skip to content

Commit

Permalink
chore: remove logger about config
Browse files Browse the repository at this point in the history
  • Loading branch information
marianozunino committed Oct 4, 2024
1 parent 135520f commit 3cea64f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,7 @@ func initConfig() {
}

viper.AutomaticEnv()

if err := viper.ReadInConfig(); err == nil {
fmt.Fprintln(os.Stderr, "Using config file:", viper.ConfigFileUsed())
}
viper.ReadInConfig()
}

func run(cmd *cobra.Command, args []string) {
Expand Down
3 changes: 1 addition & 2 deletions cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func updateFromGitHub() error {
return fmt.Errorf("unsupported architecture: %s", runtime.GOARCH)

}
url := fmt.Sprintf("https://github.com/marianozunino/goq/releases/latest/download/goq%s_%s.tar.gz", platform, arch)
url := fmt.Sprintf("https://github.com/marianozunino/goq/releases/latest/download/goq_%s_%s.tar.gz", platform, arch)
fmt.Printf("URL: %s\n", url)

// Download the file
Expand Down Expand Up @@ -163,4 +163,3 @@ func extractBinary(archivePath string) ([]byte, error) {

return nil, fmt.Errorf("binary not found in the archive")
}

0 comments on commit 3cea64f

Please sign in to comment.