Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

ENV_DIR requires an absolute path #14

Open
zmb3 opened this issue Jun 20, 2018 · 1 comment
Open

ENV_DIR requires an absolute path #14

zmb3 opened this issue Jun 20, 2018 · 1 comment

Comments

@zmb3
Copy link
Contributor

zmb3 commented Jun 20, 2018

I ran the script with ENV_DIR=env1 and was greeted with:

~/gcp-pcf-quickstart/src/omg-tf ~/gcp-pcf-quickstart
loading environment config: open env1/config.json: no such file or directory

I am certain that the env1/config.json file exists at this relative path.

If I rerun with ENV_DIR=/Users/me/gcp-pcf-quickstart/env1 everything works.

@zmb3
Copy link
Contributor Author

zmb3 commented Jun 24, 2018

Looks like this happens because the deploy script changes into the ENV_DIR's terraform directory and then runs omg-cli commands.

Might be best just to add a note to the help message and/or README, as checking for relative paths in bash in a portable manner is somewhat nasty.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant