radare2/sys/farm/check.sh
2014-05-09 10:55:34 +02:00

13 lines
218 B
Bash
Executable File

#!/bin/sh
revision() {
echo `git log | head -1 | cut -d " " -f 2`
}
cd `dirname $PWD/$0` ; cd ..
. ./farm/CONFIG
[ ! -f farm/last-revision ] && exit 1
now=`revision`
old=`cat farm/last-revision`
[ "$now" = "$old" ]