dev-cmd/bottle: use native Ruby.
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
parent
721ed8542b
commit
82c5756690
@ -400,7 +400,7 @@ module Homebrew
|
|||||||
# Set the times for reproducible bottles.
|
# Set the times for reproducible bottles.
|
||||||
if file.symlink?
|
if file.symlink?
|
||||||
# Need to make symlink permissions consistent on macOS and Linux
|
# Need to make symlink permissions consistent on macOS and Linux
|
||||||
system "chmod", "-h", "0777", file if OS.mac?
|
File.lchmod 0777, file if OS.mac?
|
||||||
File.lutime(tab.source_modified_time, tab.source_modified_time, file)
|
File.lutime(tab.source_modified_time, tab.source_modified_time, file)
|
||||||
else
|
else
|
||||||
file.utime(tab.source_modified_time, tab.source_modified_time)
|
file.utime(tab.source_modified_time, tab.source_modified_time)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user