platformtest.sh: Show only up to 10 bytes of version information
This commit is contained in:
parent
97b4fd8a08
commit
1f5508d049
|
@ -151,8 +151,8 @@ fi
|
||||||
# Get ngIRCd version information
|
# Get ngIRCd version information
|
||||||
eval $(grep "^VERSION = " Makefile | sed -e 's/ //g')
|
eval $(grep "^VERSION = " Makefile | sed -e 's/ //g')
|
||||||
case "$VERSION" in
|
case "$VERSION" in
|
||||||
*-*-*)
|
*~*-*)
|
||||||
VERSION=`echo "$VERSION" | cut -d'-' -f3 | cut -b2-`
|
VERSION=`echo "$VERSION" | cut -b1-10`
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
[ -n "$VERSION" ] || VERSION="unknown"
|
[ -n "$VERSION" ] || VERSION="unknown"
|
||||||
|
|
Loading…
Reference in New Issue