Skip to content

Commit

Permalink
fix: build flags type
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Mar 30, 2024
1 parent 0a9e39e commit c9692e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func Start(cfg *model.StartConfig) {
if downloadCfg.FirstLoad {
// Set default download dir, in docker, it will be ${exe}/Downloads, else it will be ${user}/Downloads
var downloadDir string
if base.InDocker {
if base.InDocker == "true" {
downloadDir = filepath.Join(filepath.Dir(cfg.StorageDir), "Downloads")
} else {
userDir, err := os.UserHomeDir()
Expand Down
2 changes: 1 addition & 1 deletion pkg/base/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package base

// Version is the build version, set at build time, using `go build -ldflags "-X github.com/GopeedLab/gopeed/pkg/base.Version=1.0.0"`.
var Version string
var InDocker bool
var InDocker string

func init() {
if Version == "" {
Expand Down

0 comments on commit c9692e7

Please sign in to comment.