[netfilter] fix ipt_ttl and ipt_TTL userspace library packaging
[openwrt.git] / scripts / patch-specs.sh
index 2ab7790..3307b6b 100755 (executable)
@@ -62,7 +62,7 @@ patch_specs() {
 }
 
 
-VERSION="$(STAGING_DIR="$DIR" "$CPP" --version | head -n1)"
+VERSION="$(STAGING_DIR="$DIR" "$CPP" --version | sed -ne 's/^.* (.*) //; s/ .*$//; 1p')"
 VERSION="${VERSION:-unknown}"
 
 case "${VERSION##* }" in
This page took 0.020443 seconds and 4 git commands to generate.