summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJulien Dessaux2024-06-01 23:57:00 +0200
committerJulien Dessaux2024-06-01 23:57:00 +0200
commitefbfb291ae3526e68ad1cc8b7320d55fe8a11764 (patch)
tree7380024cfb820698413ca942a2367768f6a5858d /cmd
parentfeat(gonf): implement the gonf deploy cli command (diff)
downloadgonf-efbfb291ae3526e68ad1cc8b7320d55fe8a11764.tar.gz
gonf-efbfb291ae3526e68ad1cc8b7320d55fe8a11764.tar.bz2
gonf-efbfb291ae3526e68ad1cc8b7320d55fe8a11764.zip
fix(gonf): fixed hostflag management
Diffstat (limited to '')
-rw-r--r--cmd/gonf/hostflag.go2
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 {