WIP fix possible path issues #62

Merged
asdf merged 3 commits from fix-path-issues into develop 2019-10-29 10:03:56 +00:00
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import (
"io/ioutil"
"os"
"os/signal"
"path/filepath"
"strings"
"syscall"
@ -60,7 +61,7 @@ func saveConfig() error {
opts.WriteString(certs)
return ioutil.WriteFile(bombadillo.Options["configlocation"]+"/.bombadillo.ini", []byte(opts.String()), 0644)
return ioutil.WriteFile(filepath.Join(bombadillo.Options["configlocation"], ".bombadillo.ini"), []byte(opts.String()), 0644)
}
Outdated
Review

This is good 👍

This is good :thumbsup:
func validateOpt(opt, val string) bool {