vaguerent/templates/sync.erb
2010-06-05 00:39:25 -07:00

15 lines
193 B
Plaintext

#!/bin/sh
TIMESTART=`date +%s`
while [ 1 ]
do
echo 'Syncing...'
unison $1 $2 $3 $4
TIME=$((`date +%s`-$TIMESTART))
echo $TIME
if [ $TIME -ge 50 ]
then
break
fi
sleep 1
done