Skip to content

Document script working directory and environment variables #47

Description

@jonhoo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions