From: Thomas Guyot-Sionnest Date: Wed, 26 Nov 2008 11:04:04 +0000 (-0500) Subject: Fix it for good now X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db305b81c771a9d864852e73244374c715cd8f46;p=nagiosplug.git Fix it for good now --- diff --git a/NP-VERSION-GEN b/NP-VERSION-GEN index 10428b3..657ef3c 100755 --- a/NP-VERSION-GEN +++ b/NP-VERSION-GEN @@ -29,8 +29,8 @@ elif test -d $SRC_ROOT/.svn -o -f $SRC_ROOT/.svn && *$LF*) (exit 1) ;; Revision:*) VN=`echo $VN | awk '{print $NF}'` - SS=`svn status 2>/dev/null | grep '^[AMD]' | wc -l` - test "$SS" = 0 || VN="$VN-dirty" ;; + test "`svn status 2>/dev/null | grep '^[AMD]' | wc -l | tr -d ' '`" = 0 || + VN="$VN-dirty" ;; esac then VN=`echo "trunk.$VN" | sed -e 's/-/./g'`;