aboutsummaryrefslogtreecommitdiffstats
path: root/extra-tools
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-06-28 23:18:14 +0000
committerbloodstalker <thabogre@gmail.com>2017-06-28 23:18:14 +0000
commitc7ea8f75b7aaa9897969f2958772913440ef4435 (patch)
tree9989398a567f7a4fde92100b1b7a7448ac57cafc /extra-tools
parentchanged the default value of ConvertToSCPP to true (diff)
downloadmutator-c7ea8f75b7aaa9897969f2958772913440ef4435.tar.gz
mutator-c7ea8f75b7aaa9897969f2958772913440ef4435.zip
now uses the relic count var not a number...
Diffstat (limited to 'extra-tools')
-rwxr-xr-xextra-tools/precommitTests.sh6
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