Closed julienvey closed 8 years ago
+1
I'm not sure this is a good idea.
I agree that it is convenient for the user, but less so for us, i.e. we lose control of the overall execution.
For example, if exit
is called from one of the sourced scripts (which are user-settable), the whole build script exits, and we don't get a chance to run the after_*
steps.
Maybe a better solution would be to expose a working_dir
config key in the .bazooka.yml
file ?
I will rework this soon
Came with a new implementation using a static file /.bzkenv
to persist the working directory between phases
Spaces in a file name would break the implementation
I fixed the space problem using echo "cd \"$(pwd)\"" > /.bzkenv
Should be all good now
We decided to merge this one and fix the last issue in the upcoming PR using templates
Resolves #251