13 lines
284 B
Bash
13 lines
284 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Clone git-repo
|
||
|
git init
|
||
|
git config core.sparsecheckout true
|
||
|
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
|
||
|
|
||
|
exec "$@"
|