Browse Source

Check for files starting with ./

master
Benjamin Shelton 1 year ago
parent
commit
be4a1e553a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      config.go

+ 1
- 1
config.go View File

@@ -42,7 +42,7 @@ func FindConfig(name, base string) string {
name = DefaultConfig
}

if name[0] == '/' {
if name[0] == '/' || (len(name) >= 2 && name[0] == '.' && name[1] == '/') {
// If the path contains symlinks, we'll get the "correct" path instead.
path, err = filepath.Abs(name)
if err != nil {


Loading…
Cancel
Save