[Blends-commit] r2694 - /blends/trunk/team_analysis_tools/author_stats
tille at users.alioth.debian.org
tille at users.alioth.debian.org
Tue Mar 1 14:31:14 UTC 2011
Author: tille
Date: Tue Mar 1 14:31:12 2011
New Revision: 2694
URL: http://svn.debian.org/wsvn/blends/?sc=1&rev=2694
Log:
Make sure author_stats will work with default number of authors
Modified:
blends/trunk/team_analysis_tools/author_stats
Modified: blends/trunk/team_analysis_tools/author_stats
URL: http://svn.debian.org/wsvn/blends/blends/trunk/team_analysis_tools/author_stats?rev=2694&op=diff
==============================================================================
--- blends/trunk/team_analysis_tools/author_stats (original)
+++ blends/trunk/team_analysis_tools/author_stats Tue Mar 1 14:31:12 2011
@@ -8,8 +8,10 @@
fi
NUM=10
-if [ "$2" -lt $NUM -o "$2" -gt $NUM ] ; then
- NUM=$2
+if [ $# -gt 1 ] ; then
+ if [ "$2" -lt $NUM -o "$2" -gt $NUM ] ; then
+ NUM=$2
+ fi
fi
NAME=authorstat_"$1"
More information about the Blends-commit
mailing list