Add additional fallback method for retrieving the CWD to further improve the situation for #226

This commit is contained in:
David Dworken
2024-07-09 18:40:50 -07:00
parent 9f64468991
commit c2f5bd1a99

View File

@ -648,6 +648,10 @@ func getCwdWithoutSubstitution() (string, error) {
return cwd, nil
}
}
cwd = os.Getenv("PWD")
if cwd != "" && strings.HasPrefix(cwd, "/") {
return cwd, nil
}
return "", err
}