Replace FileUtils.chmod with /bin/chmod for cask binaries. [WIP]
Update binary.rb Update binary.rb Update binary.rb
This commit is contained in:
parent
12fe895749
commit
7d9513130b
@ -9,7 +9,12 @@ module Hbc
|
|||||||
|
|
||||||
def link
|
def link
|
||||||
super
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user