vscoding / entrypoint.sh
lancelotly's picture
Update entrypoint.sh
6150808 verified
raw
history blame
509 Bytes
#!/bin/bash
if [ -n "$GIT_CLONE_REPOS" ]; then
echo "$GIT_CLONE_REPOS"
git config --global user.email "$GIT_USER"
git config --global user.name "$GIT_NAME"
for i in `echo $GIT_CLONE_REPOS`; do git clone $i; done
# GIT_CLONE_REPOS secreat should be like https://github.com/user1/repo1.git \
# https://github.com/user2/repo2.git \
# https://github.com/user3/repo3.git
else
echo "No git repos requests detected."
fi
if [ -n "$ADDITIONAL_RUN" ]; then
"$ADDITIONAL_RUN"
else
echo "Ready!"
fi