Mindustry/cleanup_builds.sh
2018-02-02 16:34:05 -05:00

13 lines
330 B
Bash

#!/usr/bin/env bash
OLD_TRAVIS_BUILD_NUMBER=`expr $TRAVIS_BUILD_NUMBER - 7`
OLD_DESKFILE=$OLD_TRAVIS_BUILD_BUMBER"-desktop-bleeding-edge.jar"
OLD_FILE1="Bleeding-Edge-Build-"$OLD_TRAVIS_BUILD_NUMBER".md"
if [ -e $OLD_FILE1 ]; then
rm -f $OLD_FILE1
rm -f $OLD_DESKFILE
git add $OLD_FILE1
git add $OLD_DESKFILE
fi