Make scripts executable by default
Though maybe we should only do that if they were before?
This commit is contained in:
parent
dba2a53216
commit
3f61cb19a4
@ -245,10 +245,13 @@ public
|
||||
fo=`file -h #{path}`
|
||||
args=nil
|
||||
chmod=0444
|
||||
args='-SxX' if fo =~ /Mach-O dynamically linked shared library/
|
||||
if fo =~ /Mach-O executable/ #defaults strip everything
|
||||
if fo =~ /Mach-O dynamically linked shared library/
|
||||
args='-SxX'
|
||||
elsif fo =~ /Mach-O executable/ # defaults strip everything
|
||||
args='' # still do the strip
|
||||
chmod=0544
|
||||
elsif fo =~ /script text executable/
|
||||
chmod=0544
|
||||
end
|
||||
if args
|
||||
puts "Stripping: #{path}" if ARGV.include? '--verbose'
|
||||
|
Loading…
x
Reference in New Issue
Block a user