Closed jharshman closed 7 years ago
What's happening here is the shell on the host is interpreting the pipe and running the tee command, instead of those things being passed into acbuild. You can invoke a shell inside of acbuild to do the pipe logic for you if you wish:
acbuild run -- /bin/sh -c 'echo \'eval "$(rbenv init -)"\' | tee /etc/profile.d/rbenv.sh'
Thanks for the quick reply! Seems to be something funky going on with the quotes though. Here's what got it working.
acbuild run -- /bin/sh -c "echo 'eval \"\$(rbenv init -)\"' | tee /etc/profile.d/rbenv.sh"
AcBuild Version:
Given the following line:
a file is generated on the host machine running acbuild rather than inside the container. The end goal here is to have
eval "$(rbenv init -)"
written into the file/etc/profile.d/rbenv.sh
within the container image.Is this misuse on my part or a bug?