Skip to content

Commit

Permalink
use filepath to join the path to the csv file
Browse files Browse the repository at this point in the history
this ensures `\` on the path on windows
  • Loading branch information
sharunkumar authored and Pierre Carrier committed Jun 15, 2022
1 parent 9f12066 commit c8ef25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"os"
"os/user"
"path"
"path/filepath"
"strings"
"syscall"
"text/tabwriter"
Expand All @@ -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)
Expand Down

0 comments on commit c8ef25b

Please sign in to comment.