Recongition of new commits for CI
This commit is contained in:
20
checker/detector-lib-general
Normal file
20
checker/detector-lib-general
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user