radare2/sys/farm/daemon.sh
2011-09-23 02:31:43 +02:00

15 lines
205 B
Bash
Executable File

#!/bin/sh
cd `dirname $PWD/$0`
up() {
if [ -d ../../.hg ]; then
hg pull -u
elif [ -d ../../.git ]; then
git pull
fi
}
. ./CONFIG
while : ; do
up ; ( ./check.sh ) && ./run.sh
sleep ${SLEEP}
done