mirror of
https://github.com/linuxserver/Jenkins-Kodi-Build-Box.git
synced 2026-02-04 13:04:43 +08:00
20 lines
353 B
Bash
20 lines
353 B
Bash
#!/bin/bash
|
|
mkdir -p /source /build/source
|
|
|
|
[[ -d /source/kodi/.git ]] && rm -rf /source/kodi
|
|
|
|
if [ ! -d "/builds/source/.git" ]; then
|
|
git clone https://github.com/xbmc/xbmc.git -b "$KODI_CHECKOUT" --depth=1 /builds/source &
|
|
pid="$!"
|
|
wait "$pid"
|
|
else
|
|
cd /builds/source || exit
|
|
git pull
|
|
fi
|
|
|
|
cp -pr /builds/source /source/kodi
|
|
|
|
chown -R abc:abc /builds
|
|
|
|
|