oto/assets/check_rev.sh
leedongmyung[desktop] fd14b9fcc7 install 방식 변경
2023-10-29 10:47:19 +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