Add missing to_s.
This commit is contained in:
parent
497348a8b7
commit
683bfee8b0
@ -222,7 +222,7 @@ module Hbc
|
|||||||
paths.each do |path|
|
paths.each do |path|
|
||||||
resolved_path = Pathname.new(path)
|
resolved_path = Pathname.new(path)
|
||||||
|
|
||||||
resolved_path = resolved_path.expand_path if path.start_with?("~")
|
resolved_path = resolved_path.expand_path if path.to_s.start_with?("~")
|
||||||
|
|
||||||
if resolved_path.relative? || resolved_path.split.any? { |part| part.to_s == ".." }
|
if resolved_path.relative? || resolved_path.split.any? { |part| part.to_s == ".." }
|
||||||
opoo "Skipping #{Formatter.identifier(action)} for relative path '#{path}'."
|
opoo "Skipping #{Formatter.identifier(action)} for relative path '#{path}'."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user