1
Fork 0
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:
electricboogie 2021-04-25 19:21:19 -05:00
parent fc899ffe7a
commit 8e258075f6

View file

@ -1064,7 +1064,10 @@ pub fn uumain(args: impl uucore::Args) -> i32 {
settings.tmp_dir = PathBuf::from(result); settings.tmp_dir = PathBuf::from(result);
} else { } else {
for (key, value) in env::vars_os() { 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); settings.tmp_dir = PathBuf::from(value);
break; break;
} }