mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-02 05:57:46 +00:00
Potential fix to tests on Windows
This commit is contained in:
parent
fc899ffe7a
commit
8e258075f6
1 changed files with 4 additions and 1 deletions
|
@ -1064,7 +1064,10 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
|
|||
settings.tmp_dir = PathBuf::from(result);
|
||||
} else {
|
||||
for (key, value) in env::vars_os() {
|
||||
if key == OsString::from("TMPDIR") {
|
||||
if key == OsString::from("TMPDIR")
|
||||
|| key == OsString::from("TEMP")
|
||||
|| key == OsString::from("TMP")
|
||||
{
|
||||
settings.tmp_dir = PathBuf::from(value);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue