diff options
author | Julien Dessaux | 2024-06-01 23:57:00 +0200 |
---|---|---|
committer | Julien Dessaux | 2024-06-01 23:57:00 +0200 |
commit | efbfb291ae3526e68ad1cc8b7320d55fe8a11764 (patch) | |
tree | 7380024cfb820698413ca942a2367768f6a5858d | |
parent | feat(gonf): implement the gonf deploy cli command (diff) | |
download | gonf-efbfb291ae3526e68ad1cc8b7320d55fe8a11764.tar.gz gonf-efbfb291ae3526e68ad1cc8b7320d55fe8a11764.tar.bz2 gonf-efbfb291ae3526e68ad1cc8b7320d55fe8a11764.zip |
fix(gonf): fixed hostflag management
-rw-r--r-- | cmd/gonf/hostflag.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gonf/hostflag.go b/cmd/gonf/hostflag.go index f036545..a8627e8 100644 --- a/cmd/gonf/hostflag.go +++ b/cmd/gonf/hostflag.go @@ -13,8 +13,8 @@ func addHostFlag(f *flag.FlagSet) *string { } func hostFlagToHostDir(f *flag.FlagSet, hostFlag *string) (string, error) { - if hostFlag == nil { return "", errors.New("required -host FLAG is missing") + if *hostFlag == "" { } hostDir := filepath.Join(configDir, "hosts", *hostFlag) if info, err := os.Stat(hostDir); err != nil { |