diff options
| author | Max Howell | 2010-01-13 05:36:37 +0000 |
|---|---|---|
| committer | Max Howell | 2010-01-13 11:23:15 +0000 |
| commit | 9f1fdecae7023977d86717c49458630ba8993b1b (patch) | |
| tree | 12ab866378a56d26d28d18406e2ead8a5f1c9e20 /Library | |
| parent | 2131e399ea0b7e975004efdf35f0688c5934284f (diff) | |
| download | homebrew-9f1fdecae7023977d86717c49458630ba8993b1b.tar.bz2 | |
Use full paths to strip, mktemp, cat and ls
Diffstat (limited to 'Library')
| -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 |
