mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-05 21:21:21 +01:00
Add additional fallback method for retrieving the CWD to further improve the situation for #226
This commit is contained in:
parent
bdee681c7b
commit
45b67cb2b9
@ -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