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}`
|
fo=`file -h #{path}`
|
||||||
args=nil
|
args=nil
|
||||||
chmod=0444
|
chmod=0444
|
||||||
args='-SxX' if fo =~ /Mach-O dynamically linked shared library/
|
if fo =~ /Mach-O dynamically linked shared library/
|
||||||
if fo =~ /Mach-O executable/ #defaults strip everything
|
args='-SxX'
|
||||||
|
elsif fo =~ /Mach-O executable/ # defaults strip everything
|
||||||
args='' # still do the strip
|
args='' # still do the strip
|
||||||
chmod=0544
|
chmod=0544
|
||||||
|
elsif fo =~ /script text executable/
|
||||||
|
chmod=0544
|
||||||
end
|
end
|
||||||
if args
|
if args
|
||||||
puts "Stripping: #{path}" if ARGV.include? '--verbose'
|
puts "Stripping: #{path}" if ARGV.include? '--verbose'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user