aboutsummaryrefslogtreecommitdiff
path: root/NP-VERSION-GEN
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2008-11-26 06:04:04 -0500
committerGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2008-11-26 06:04:04 -0500
commitdb305b81c771a9d864852e73244374c715cd8f46 (patch)
tree64391cadad444406393597cb0a971901527e5c6a /NP-VERSION-GEN
parentbf3d216085eab8577412db9cef5f75701dafd8e6 (diff)
downloadmonitoring-plugins-db305b81c771a9d864852e73244374c715cd8f46.tar.gz
Fix it for good now
Diffstat (limited to 'NP-VERSION-GEN')
-rwxr-xr-xNP-VERSION-GEN4
1 files changed, 2 insertions, 2 deletions
diff --git a/NP-VERSION-GEN b/NP-VERSION-GEN
index 10428b3e..657ef3c0 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'`;