joh/when-changed

How to evaluate environment variables set by when-changed

wieselkind opened this issue · 1 comments

Hi,

I'm trying to look at the exported envvars mentioned in when-changed docs.
However they're always undefined even when adding a call to 'env' as command to when-changed.

How may one properly access those? (from bash/zsh)

Thanks
David

`Environment variables:

  • WHEN_CHANGED_EVENT: reflects the current event type that occurs.
    Could be either: file_created, file_modified, file_moved, file_deleted

  • WHEN_CHANGED_FILE: provides the full path of the file that has generated the event.
    `

figured it out... I was using v0.3.0 from pip install... had to replace whenchanged.py with latest from GitHub and voila envvars work as expected :-)