Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Low: tools: Avoid linking to files that don't exist

  • Loading branch information...
commit edcf4e54fb45b530b0ab5bcec76de1bd48b79a28 1 parent fe663bd
@beekhof beekhof authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 tools/report.collector
View
7 tools/report.collector
@@ -700,10 +700,9 @@ for l in $logfiles $EXTRA_LOGS; do
node_events `basename $l` > $EVENTS_F
# Link the first logfile to a standard name if it doesn't yet exist
- if [ -e $HALOG_F ]; then
- : nothing
- else
- ln -s `basename $l` $HALOG_F
+ f=`basename $l`
+ if [ -e $f -a ! -e $HALOG_F ]; then
+ ln -s $f $HALOG_F
fi
done
Please sign in to comment.
Something went wrong with that request. Please try again.