Quote path in conflict error rm command

Fixes Homebrew/homebrew#35143.
Closes Homebrew/homebrew#35239.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Baptiste Fontaine 2014-12-24 16:59:40 +01:00 committed by Jack Nagel
parent 1b1a73bddb
commit 278b77e6c5

View File

@ -30,7 +30,7 @@ class Keg
def suggestion
conflict = Keg.for(dst)
rescue NotAKegError, Errno::ENOENT
"already exists. You may want to remove it:\n rm #{dst}\n"
"already exists. You may want to remove it:\n rm '#{dst}'\n"
else
<<-EOS.undent
is a symlink belonging to #{conflict.name}. You can unlink it: