image-bootstrap icon indicating copy to clipboard operation
image-bootstrap copied to clipboard

Document script working directory and environment variables

Open jonhoo opened this issue 6 years ago • 1 comments

In certain pre/post scripts, it is useful to be able to refer back to files in the directory that houses that script itself (e.g., static assets, configuration files, etc.). It would be great if the working directory at the time when image-bootstrap is invoked was somehow made accessible to scripts (perhaps through an ORIGINAL_WD environment variable? An alternative would be to just chdir back to the original working directory before invoking the scripts; I don't know which is better.

jonhoo avatar Jul 19 '17 23:07 jonhoo

Ah, it seems like the working directory is preserved. This should probably be documented somewhere!

jonhoo avatar Jul 19 '17 23:07 jonhoo