Skip to content
Snippets Groups Projects
Commit a53e2405 authored by João Cunha's avatar João Cunha
Browse files

fix: give prescedence to cd

parent d9f39e3e
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ if [ -n "${TF_STATE_NAME}" ]; then
fi
# If TF_ROOT is set (and isn't the current directory) then use the -chdir option
if [ -n "${TF_ROOT}" ] && [[ $PWD != *"${TF_ROOT}" ]]; then
if [ -n "${TF_ROOT}" ] && [ -d "${TF_ROOT}" ]; then
TF_CHDIR_OPT="-chdir=${TF_ROOT}"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment