Merge pull request #3532 from reitermarkus/to_s

Add missing `to_s`.
This commit is contained in:
Markus Reiter 2017-12-07 17:08:19 +01:00 committed by GitHub
commit 34b03dea52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}'."