aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb8
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