mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
21 lines
586 B
Go
21 lines
586 B
Go
--- commands/configtest.go.orig 2018-11-16 12:22:18 UTC
|
|
+++ commands/configtest.go
|
|
@@ -20,8 +20,6 @@ package commands
|
|
import (
|
|
"context"
|
|
"flag"
|
|
- "os"
|
|
- "path/filepath"
|
|
|
|
"github.com/google/subcommands"
|
|
|
|
@@ -63,8 +61,7 @@ func (*ConfigtestCmd) Usage() string {
|
|
|
|
// SetFlags set flag
|
|
func (p *ConfigtestCmd) SetFlags(f *flag.FlagSet) {
|
|
- wd, _ := os.Getwd()
|
|
- defaultConfPath := filepath.Join(wd, "config.toml")
|
|
+ defaultConfPath := "%%ETCDIR%%/config.toml"
|
|
f.StringVar(&p.configPath, "config", defaultConfPath, "/path/to/toml")
|
|
|
|
defaultLogDir := util.GetDefaultLogDir()
|