use filepath to join the path to the csv file
this ensures `\` on the path on windows
This commit is contained in:
parent
9f120664a3
commit
c8ef25b018
4
gauth.go
4
gauth.go
@ -5,7 +5,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"os/user"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"syscall"
|
||||
"text/tabwriter"
|
||||
@ -21,7 +21,7 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
cfgPath = path.Join(user.HomeDir, ".config/gauth.csv")
|
||||
cfgPath = filepath.Join(user.HomeDir, ".config", "gauth.csv")
|
||||
}
|
||||
|
||||
cfgContent, err := gauth.LoadConfigFile(cfgPath, getPassword)
|
||||
|
Loading…
x
Reference in New Issue
Block a user