simplify duplicate line check in pointsd

This commit is contained in:
Neale Pickett 2012-06-06 22:13:49 -06:00
parent c40e36c78e
commit a8e9629259
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ BACKUP=$WWW/backup.png
SCOREBOARD=$WWW/scoreboard.html
# Only do this if this score hasn't yet been recorded
if ! cut -d' ' -f2- $POINTS | grep -Fqx "$(cut -d' ' -f2- $fn)"; then
if [ -z "$(sort -k2 $POINTS $fn | uniq -f1 -d)" ]; then
cat $fn >> $POINTS
rm $fn
fi