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
|
||||
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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user