dev-cmd/bottle: use native Ruby.

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
Mike McQuaid 2021-07-14 11:45:03 +01:00 committed by GitHub
parent 721ed8542b
commit 82c5756690
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ module Homebrew
# Set the times for reproducible bottles.
if file.symlink?
# 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)
else
file.utime(tab.source_modified_time, tab.source_modified_time)