mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
exit on logdir being gone before grepping it
This commit is contained in:
parent
c44324a32a
commit
35ff5a7835
1 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,9 @@ do_device() {
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
if grep -q 'all remaining tiles' $LOG; then
|
if [ ! -d $LOGDIR ]; then
|
||||||
|
break;
|
||||||
|
elif grep -q 'all remaining tiles' $LOG; then
|
||||||
echo -n "device $DEV in game $GAME succeeded ($LOG $(connName $LOG)) "
|
echo -n "device $DEV in game $GAME succeeded ($LOG $(connName $LOG)) "
|
||||||
date
|
date
|
||||||
mv $LOG $DONEDIR
|
mv $LOG $DONEDIR
|
||||||
|
@ -75,8 +77,6 @@ do_device() {
|
||||||
echo -n "($LOG $(connName $LOG)) "
|
echo -n "($LOG $(connName $LOG)) "
|
||||||
date
|
date
|
||||||
break
|
break
|
||||||
elif [ ! -d $LOGDIR ]; then
|
|
||||||
break;
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue