platformtest.sh: Show only up to 10 bytes of version information
authorAlexander Barton <alex@barton.de>
Sat, 11 Jan 2014 00:32:12 +0000 (01:32 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 11 Jan 2014 00:32:13 +0000 (01:32 +0100)
contrib/platformtest.sh

index dfefc1a..f34a889 100755 (executable)
@@ -151,8 +151,8 @@ fi
 # Get ngIRCd version information
 eval $(grep "^VERSION = " Makefile | sed -e 's/ //g')
 case "$VERSION" in
-       *-*-*)
-               VERSION=`echo "$VERSION" | cut -d'-' -f3 | cut -b2-`
+       *~*-*)
+               VERSION=`echo "$VERSION" | cut -b1-10`
                ;;
 esac
 [ -n "$VERSION" ] || VERSION="unknown"