Update 'init/entrypoint.sh'

This commit is contained in:
Danny Bessems 2020-02-17 12:53:54 +00:00
parent b57bd84d41
commit 89618d562a

View File

@ -7,7 +7,14 @@ echo $SPARSE_CHECKOUT >> .git/info/sparse-checkout
git remote add -f origin $REMOTE_REPO git remote add -f origin $REMOTE_REPO
git pull origin $REMOTE_BRANCH git pull origin $REMOTE_BRANCH
mkdir -p /app/$COMPONENT/scripts # Create target folder and move files
mv ./components/*/**/* /app/$COMPONENT/scripts mkdir -p $TARGET_DIR
if [ -n $FLATTENFOLDER ]; then
# Flatten folder structure
mv ./*/**/* $TARGET_DIR
else
# Retain folder structure
mv ./* $TARGET_DIR
fi
exec "$@" exec "$@"