log file publishing fixed
This commit is contained in:
+5
-8
@@ -53,28 +53,25 @@ log () {
|
||||
# Always produce a log file in the destination folder
|
||||
finish () {
|
||||
|
||||
date > $TMPDATE
|
||||
log_file $TMPDATE
|
||||
|
||||
if [ -f $LOG ]
|
||||
then
|
||||
echo "Moving log file to $LOG $PUBLIC_WWW/"
|
||||
mv -v $LOG "$PUBLIC_WWW/"
|
||||
echo "Moving log.txt file to $LOG $PUBLIC_WWW/"
|
||||
mv -Z -v $LOG "$PUBLIC_WWW/"
|
||||
fi
|
||||
|
||||
if [ -f $TMPLOG ]
|
||||
then
|
||||
rm -v $TMPLOG
|
||||
rm $TMPLOG
|
||||
fi
|
||||
|
||||
if [ -f $TMPERR ]
|
||||
then
|
||||
rm -v $TMPERR
|
||||
rm $TMPERR
|
||||
fi
|
||||
|
||||
if [ -f $TMPDATE ]
|
||||
then
|
||||
rm -v $TMPDATE
|
||||
rm $TMPDATE
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user