diff options
| author | Samuel John | 2014-04-06 17:14:09 +0200 |
|---|---|---|
| committer | Jack Nagel | 2014-04-06 10:35:59 -0500 |
| commit | 1cc5d69727ab092dc65204fcb4bf5ca6d9a7f091 (patch) | |
| tree | 8d22cb589f062a1d8ada98c5c48bf43a400338be /Library | |
| parent | db7e6546a6a4c159e829b58b58f39473772024d6 (diff) | |
| download | homebrew-1cc5d69727ab092dc65204fcb4bf5ca6d9a7f091.tar.bz2 | |
python caveats: use `>` instead of `>>`
The `homebrew.pth` should be a file with a single line in it.
Also (at least on zsh) if the file does not exist, `>>` will
result in an error. The `>` works in both, bash and zsh and
creates the file with the `echo`ed contet.
Closes #28201.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/caveats.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index a876a716c..2e1813b83 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -61,7 +61,7 @@ class Caveats if !file_path.readable? || !file_path.read.include?(site_packages) s = "If you need Python to find the installed site-packages:\n" s += " mkdir -p #{dir}\n" unless dir_path.exist? - s += " echo '#{site_packages}' >> #{file}" + s += " echo '#{site_packages}' > #{file}" end end |
