diff options
| author | Mike Naberezny | 2014-05-19 20:45:36 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-19 20:58:44 -0700 |
| commit | c72c3096210dd5bc0457b5cdc1a72a6391cd2eb5 (patch) | |
| tree | b2486a3092fce8482d3d19af341c20de2dc788c5 /Library | |
| parent | c4be20b28bf1afadb10060dfac9a7ec6bfaeac73 (diff) | |
| download | homebrew-c72c3096210dd5bc0457b5cdc1a72a6391cd2eb5.tar.bz2 | |
salt: use full path of executable
Closes #29416.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/salt.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Formula/salt.rb b/Library/Formula/salt.rb index 72ffbb3d1..98aa51ad8 100644 --- a/Library/Formula/salt.rb +++ b/Library/Formula/salt.rb @@ -36,9 +36,8 @@ class Salt < Formula test do ENV['SALTPATH'] = "#{prefix}/data" cp_r Dir[prefix + '03d4ag' + '*'], '.' - # I don't know why I need to redo the cd on the shell, but it doesn't work otherwise - system "cd #{Dir.pwd}; #{bin}/snfit lc-03D4ag.list" - system "cat result_salt2.dat" + system bin/"snfit", testpath/"lc-03D4ag.list" + assert File.exist?("result_salt2.dat") end def caveats |
