Expect drive letter only on vanilla windows (#8227)
Merge pull request 8227
This commit is contained in:
parent
03256d7b80
commit
75ae986208
|
@ -82,7 +82,7 @@ module DirectoryHelpers
|
||||||
end
|
end
|
||||||
|
|
||||||
def temp_dir(*subdirs)
|
def temp_dir(*subdirs)
|
||||||
if Utils::Platforms.windows?
|
if Utils::Platforms.vanilla_windows?
|
||||||
drive = Dir.pwd.sub(%r!^([^/]+).*!, '\1')
|
drive = Dir.pwd.sub(%r!^([^/]+).*!, '\1')
|
||||||
temp_root = File.join(drive, "tmp")
|
temp_root = File.join(drive, "tmp")
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue