mirror of
https://github.com/ddworken/hishtory.git
synced 2025-04-02 20:38:43 +02: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
|
return cwd, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
cwd = os.Getenv("PWD")
|
||||||
|
if cwd != "" && strings.HasPrefix(cwd, "/") {
|
||||||
|
return cwd, nil
|
||||||
|
}
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user