Skip to content

Conversation

@jamsinclair
Copy link

@jamsinclair jamsinclair commented Nov 29, 2018

Bug

Having namespaced paths with spaces causes the compare_images.rb script to hang or fail. This was reported in #527.

Example Bad Path in Wraith Config File

paths:
  Site Home: /home.html

This bug is happening because the constructed shell command in compare_images.rb does not escape the supplied pathnames resulting in a faulty compare CLI command.

What this PR does

The included changes make the pathname strings escaped for the shell.

This will allow people to use spaces for their named paths and the compare_images.rb script can correctly compare the files and generate the diff image.

- Allows spaces and special chars to be used with site path namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant