Add missing to_s.

This commit is contained in:
Markus Reiter 2017-12-06 11:46:30 +01:00
parent 497348a8b7
commit 683bfee8b0

View File

@ -222,7 +222,7 @@ module Hbc
paths.each do |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 == ".." }
opoo "Skipping #{Formatter.identifier(action)} for relative path '#{path}'."