mktemp: avoid directories with @

This commit is contained in:
Francois-Xavier Coudert 2020-12-28 12:14:11 +01:00
parent bcbf5857da
commit b6447120ae

View File

@ -40,7 +40,7 @@ class Mktemp
end end
def run def run
@tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix}-", HOMEBREW_TEMP)) @tmpdir = Pathname.new(Dir.mktmpdir("#{@prefix.tr "@", "-"}-", HOMEBREW_TEMP))
# Make sure files inside the temporary directory have the same group as the # Make sure files inside the temporary directory have the same group as the
# brew instance. # brew instance.