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:
parent
1b1a73bddb
commit
278b77e6c5
@ -30,7 +30,7 @@ class Keg
|
|||||||
def suggestion
|
def suggestion
|
||||||
conflict = Keg.for(dst)
|
conflict = Keg.for(dst)
|
||||||
rescue NotAKegError, Errno::ENOENT
|
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
|
else
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
is a symlink belonging to #{conflict.name}. You can unlink it:
|
is a symlink belonging to #{conflict.name}. You can unlink it:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user