mirror of
https://github.com/libretro/libretro-super
synced 2025-02-25 15:41:09 +00:00
cleanup once a month
This commit is contained in:
parent
468bc4e32a
commit
43b81a8dad
@ -190,9 +190,12 @@ if [ -z "$FORCE" ]; then
|
|||||||
FORCE=NO
|
FORCE=NO
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set cleanup to NO by default
|
||||||
|
|
||||||
DAY=`date '+%d'`
|
DAY=`date '+%d'`
|
||||||
if [ $DAY == 01 ]; then
|
if [ $DAY == 01 ]; then
|
||||||
FORCE=YES
|
FORCE=YES
|
||||||
|
CLEANUP=YES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set force_retroarch_build to NO if not specified
|
# set force_retroarch_build to NO if not specified
|
||||||
@ -806,7 +809,12 @@ while read line; do
|
|||||||
# repo is a regular repository
|
# repo is a regular repository
|
||||||
if [ "${TYPE}" = "PROJECT" ]; then
|
if [ "${TYPE}" = "PROJECT" ]; then
|
||||||
if [ -d "${DIR}/.git" ]; then
|
if [ -d "${DIR}/.git" ]; then
|
||||||
|
if [ "${CLEANUP}" == "YES" ]; then
|
||||||
|
rm -rfv $DIR
|
||||||
|
echo "cloning repo..."
|
||||||
|
git clone --depth=1 "$URL" "$DIR"
|
||||||
|
BUILD="YES"
|
||||||
|
else
|
||||||
cd $DIR
|
cd $DIR
|
||||||
echo "pulling from repo... "
|
echo "pulling from repo... "
|
||||||
OUT=`git pull`
|
OUT=`git pull`
|
||||||
@ -817,6 +825,8 @@ while read line; do
|
|||||||
BUILD="YES"
|
BUILD="YES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
OLDFORCE=$FORCE
|
OLDFORCE=$FORCE
|
||||||
OLDBUILD=$BUILD
|
OLDBUILD=$BUILD
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user