mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +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
|
||||
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)) "
|
||||
date
|
||||
mv $LOG $DONEDIR
|
||||
|
@ -75,8 +77,6 @@ do_device() {
|
|||
echo -n "($LOG $(connName $LOG)) "
|
||||
date
|
||||
break
|
||||
elif [ ! -d $LOGDIR ]; then
|
||||
break;
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue