Recongition of new commits for CI

This commit is contained in:
2018-02-25 20:00:02 +01:00
parent 4b44a745e4
commit 8aee30f8d2
3 changed files with 89 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
function detectorCheckCommit(){
sha=$1
history=$DET_DIR/detectorExecuted
[ -f $history ] || touch $history
if grep -q $sha $history
then
return 1
else
return 0
fi
}
function detectorSaveCommit(){
sha=$1
history=$DET_DIR/detectorExecuted
echo $sha >> $history
}