Keep x bit on both libexec/ + bin/
This commit is contained in:
parent
f25a6f94f8
commit
8dbc8a12b4
1 changed files with 10 additions and 3 deletions
|
@ -45,9 +45,16 @@ class Copy < Builder
|
||||||
end
|
end
|
||||||
sh "find #{dest} -type d -exec chmod u=rwx,g=rx,o=rx {} +"
|
sh "find #{dest} -type d -exec chmod u=rwx,g=rx,o=rx {} +"
|
||||||
sh "find #{dest} -type f -exec chmod u=rw,g=r,o=r {} +"
|
sh "find #{dest} -type f -exec chmod u=rw,g=r,o=r {} +"
|
||||||
if _1 == "twenty-cli"
|
chmod_exes(dest)
|
||||||
sh "find #{dest}/libexec -type f -exec chmod u=rwx,g=rx,o=rx {} +"
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def chmod_exes(dest)
|
||||||
|
[File.join(dest, "libexec"), File.join(dest, "bin")].each do |exedir|
|
||||||
|
next unless File.exist?(exedir)
|
||||||
|
sh "find #{exedir} -type f -exec chmod u=rwx,g=rx,o=rx {} +"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue