diff options
| author | Max Howell | 2010-01-13 05:36:37 +0000 |
|---|---|---|
| committer | Max Howell | 2010-01-13 11:23:15 +0000 |
| commit | d8c3b3a80a94bbc121539cd8d52eb252fb26c577 (patch) | |
| tree | 68d60c7268829c2875807c02c8ed657146f4303f | |
| parent | e97c16f498fe52c4e2fbfc1428c886c1c3cc5179 (diff) | |
| download | brew-d8c3b3a80a94bbc121539cd8d52eb252fb26c577.tar.bz2 | |
Use full paths to strip, mktemp, cat and ls
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index e223d781d..32688d64c 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -350,7 +350,7 @@ def macports_or_fink_installed? end def versions_of(keg_name) - `ls #{HOMEBREW_CELLAR}/#{keg_name}`.collect { |version| version.strip }.reverse + `/bin/ls #{HOMEBREW_CELLAR}/#{keg_name}`.collect { |version| version.strip }.reverse end @@ -446,9 +446,9 @@ private else # strip unlinks the file and recreates it, thus breaking hard links! # is this expected behaviour? patch does it too… still, this fixes it - tmp=`mktemp -t #{path.basename}`.strip - `strip #{args} -o #{tmp} #{path}` - `cat #{tmp} > #{path}` + tmp = `/usr/bin/mktemp -t #{path.basename}`.chomp + `/usr/bin/strip #{args} -o #{tmp} #{path}` + `/bin/cat #{tmp} > #{path}` File.unlink tmp end end |
