Skip to content
Snippets Groups Projects
Commit 3f61cb19 authored by Max Howell's avatar Max Howell
Browse files

Make scripts executable by default

Though maybe we should only do that if they were before?
parent dba2a532
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
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