Skip to content
Snippets Groups Projects
Commit 7d951313 authored by commitay's avatar commitay Committed by Markus Reiter
Browse files

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

Update binary.rb
Update binary.rb
Update binary.rb
parent 12fe8957
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment