From e39f2ad229cef84631a8ebf8cc25bf5371423d5a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 31 Jul 2009 14:03:58 +0100 Subject: [PATCH] FIX chmod correctly for *both* 32bit and 64bit binaries --- Library/Homebrew/keg.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index f5c856a950..d2db862afa 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -52,8 +52,8 @@ class Keg perms=0444 if fo =~ /Mach-O dynamically linked shared library/ args='-SxX' - elsif fo =~ /Mach-O [^ ]* executable/ # defaults strip everything - args='' # still do the strip + elsif fo =~ /Mach-O [^ ]* ?executable/ + args='' # use strip defaults perms=0544 elsif fo =~ /script text executable/ perms=0544