Update 'init/entrypoint.sh'
This commit is contained in:
parent
b57bd84d41
commit
89618d562a
@ -7,7 +7,14 @@ echo $SPARSE_CHECKOUT >> .git/info/sparse-checkout
|
||||
git remote add -f origin $REMOTE_REPO
|
||||
git pull origin $REMOTE_BRANCH
|
||||
|
||||
mkdir -p /app/$COMPONENT/scripts
|
||||
mv ./components/*/**/* /app/$COMPONENT/scripts
|
||||
# Create target folder and move files
|
||||
mkdir -p $TARGET_DIR
|
||||
if [ -n $FLATTENFOLDER ]; then
|
||||
# Flatten folder structure
|
||||
mv ./*/**/* $TARGET_DIR
|
||||
else
|
||||
# Retain folder structure
|
||||
mv ./* $TARGET_DIR
|
||||
fi
|
||||
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user