mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
don't nuke bad files along with good
This commit is contained in:
parent
34df149046
commit
38ae2faacc
1 changed files with 6 additions and 3 deletions
|
@ -18,8 +18,11 @@ NAMES=(UNUSED Brynn Ariela Kati Eric)
|
|||
LOGDIR=$(basename $0)_logs
|
||||
[ -d $LOGDIR ] && mv $LOGDIR /tmp/${LOGDIR}_$$
|
||||
mkdir -p $LOGDIR
|
||||
DONEDIR=$LOGDIR/done
|
||||
mkdir -p $DONEDIR
|
||||
|
||||
if [ "$SAVE_GOOD" = YES ]; then
|
||||
DONEDIR=$LOGDIR/done
|
||||
mkdir -p $DONEDIR
|
||||
fi
|
||||
|
||||
USE_GTK=${USE_GTK:-FALSE}
|
||||
|
||||
|
@ -115,7 +118,7 @@ close_device() {
|
|||
fi
|
||||
unset PIDS[$ID]
|
||||
unset CMDS[$ID]
|
||||
if [ "$SAVE_GOOD" = YES ]; then
|
||||
if [ -n "$MVTO" ]; then
|
||||
[ -f ${FILES[$ID]} ] && mv ${FILES[$ID]} $MVTO
|
||||
mv ${LOGS[$ID]} $MVTO
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue