mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
Add additional fallback method for retrieving the CWD to further improve the situation for #226
This commit is contained in:
parent
9f64468991
commit
c2f5bd1a99
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user