We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255517c commit 313c61dCopy full SHA for 313c61d
src/runner.rs
@@ -40,15 +40,14 @@ pub fn get_tty() -> Result<fs::File> {
40
// returns physical path. As a workaround, this function tries to use `PWD`
41
// environment variable that is configured by shell.
42
fn get_current_dir() -> Result<PathBuf, std::io::Error> {
43
- let cur = std::env::current_dir();
44
if let Ok(pwd) = std::env::var("PWD") {
45
if pwd.is_empty() {
46
- cur
+ std::env::current_dir()
47
} else {
48
Ok(PathBuf::from(pwd))
49
}
50
51
52
53
54
0 commit comments