diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 0b99d97765..49f29369ce 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -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'