diff options
author | bloodstalker <thabogre@gmail.com> | 2017-06-28 23:18:14 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-06-28 23:18:14 +0000 |
commit | c7ea8f75b7aaa9897969f2958772913440ef4435 (patch) | |
tree | 9989398a567f7a4fde92100b1b7a7448ac57cafc /extra-tools/precommitTests.sh | |
parent | changed the default value of ConvertToSCPP to true (diff) | |
download | mutator-c7ea8f75b7aaa9897969f2958772913440ef4435.tar.gz mutator-c7ea8f75b7aaa9897969f2958772913440ef4435.zip |
now uses the relic count var not a number...
Diffstat (limited to 'extra-tools/precommitTests.sh')
-rwxr-xr-x | extra-tools/precommitTests.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |