oto/assets/script/check_rev.sh
2023-10-30 20:54:36 +09:00

14 lines
No EOL
247 B
Bash

#!/bin/zsh
REV_OLD=`cat git_rev.txt`
git rev-list --all HEAD --all --count > git_rev.txt
REV_NEW=`cat git_rev.txt`
echo "$REV_OLD"
echo "$REV_NEW"
RESULT=FALSE
if [ ${REV_OLD} -ne ${REV_NEW} ] ; then
RESULT=TRUE
fi
echo $RESULT > result.txt