From c7ea8f75b7aaa9897969f2958772913440ef4435 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 29 Jun 2017 03:48:14 +0430 Subject: now uses the relic count var not a number... --- extra-tools/precommitTests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extra-tools') diff --git a/extra-tools/precommitTests.sh b/extra-tools/precommitTests.sh index eec5682..0fb5ad8 100755 --- a/extra-tools/precommitTests.sh +++ b/extra-tools/precommitTests.sh @@ -15,21 +15,21 @@ function RelicKeeper { cd ./reliquary/bruiser RELIC_CNT=$(ls | gawk 'END{print NR}') - if (( $RELIC_CNT > 10 )); then + if (( $RELIC_CNT > $RELIC_COUNT )); then rm "$(ls -t | tail -1)" printf "${Orange}RelicKeeper removed the oldest bruiser relic.\n${NC}" | tee -a ../../test/precommit.rep fi cd ../m0 RELIC_CNT=$(ls | gawk 'END{print NR}') - if (( $RELIC_CNT > 10 )); then + if (( $RELIC_CNT > $RELIC_COUNT )); then rm "$(ls -t | tail -1)" printf "${Orange}RelicKeeper removed the oldest m0 relic.\n${NC}" | tee -a ../../test/precommit.rep fi cd ../safercpp RELIC_CNT=$(ls | gawk 'END{print NR}') - if (( $RELIC_CNT > 10 )); then + if (( $RELIC_CNT > $RELIC_COUNT )); then rm "$(ls -t | tail -1)" printf "${Orange}RelicKeeper removed the oldest safercpp relic.\n${NC}" | tee -a ../../test/precommit.rep fi -- cgit v1.2.3