Replace FileUtils.chmod with /bin/chmod for cask binaries. [WIP]

Update binary.rb
Update binary.rb
Update binary.rb
This commit is contained in:
commitay 2017-04-20 14:38:16 +10:00 committed by Markus Reiter
parent 12fe895749
commit 7d9513130b

View File

@ -9,7 +9,12 @@ module Hbc
def link
super
FileUtils.chmod "+x", source
return if source.executable?
if source.writable?
FileUtils.chmod "+x", source
else
@command.run!.run("/bin/chmod", args: ["+x", source], sudo: true)
end
end
end
end