docker: bugfix syntax error on entrypoint
This commit is contained in:
parent
198e4def60
commit
ae308a98f9
|
@ -17,7 +17,7 @@ END
|
||||||
|
|
||||||
inject_env_vars() {
|
inject_env_vars() {
|
||||||
# related https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/
|
# related https://www.kenmuse.com/blog/avoiding-dubious-ownership-in-dev-containers/
|
||||||
if [ -d "${idhub_dir}/.git" ]
|
if [ -d "${idhub_dir}/.git" ]; then
|
||||||
git config --global --add safe.directory "${idhub_dir}"
|
git config --global --add safe.directory "${idhub_dir}"
|
||||||
export COMMIT="commit: $(git log --pretty=format:'%h' -n 1)"
|
export COMMIT="commit: $(git log --pretty=format:'%h' -n 1)"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue