Hi there…
I’m trying to run
TS_ENV=foo terraspace build
with hooks to launch a script to do something before continue… but I’m getting this error
/home/user/.rbenv/versions/2.7.2/lib/ruby/2.7.0/open3.rb:213:in `spawn': No such file or directory - customs-scripts/example_tfvars.sh (Errno::ENOENT)
inside of directory /home/user/test-demo/
i got.
app config customs-scripts Gemfile Gemfile.lock log README.md Terrafile
so my script only works if in hooks i set ALL path… as
before("build",
execute: "/home/user/test-demo/customs-scripts/example_tfvars.sh",
exit_on_fail: false,
)
i need to run as relative path non specific … something like ~ for HOME user on bash but working for terraspace
before("build",
execute: "???RELATIVE_PATH???/customs-scripts/example_tfvars.sh",
exit_on_fail: false,
)
thanks