blob: 21d123ab90a6b91d41d868903d3b24eb7e6de6ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
require "hbc/artifact/symlinked"
module Hbc
module Artifact
class Binary < Symlinked
def install_phase
super if CLI.binaries?
end
def link
super
return if source.executable?
if source.writable?
FileUtils.chmod "+x", source
else
@command.run!("/bin/chmod", args: ["+x", source], sudo: true)
end
end
end
end
end
|