This commit is contained in:
2023-03-01 22:04:05 -06:00
parent f6734a35db
commit 109f24f9c1
3 changed files with 16 additions and 17 deletions

View File

@@ -41,3 +41,14 @@ DEBUGLOGSTOP(){
chktm=$((chktmend-chktmstart))
echo "$(date) - ${mmsv} Runtime: ${chktm}s" >> $logfile
}
MMUPDATECHECK(){
if curl -m 15 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
cd ${MMFOLDER}
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
touch ${MMFOLDER}/update.available
fi
else
/bin/rm -f ${MMFOLDER}/update.available
fi
}