X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Fpatch-specs.sh;fp=scripts%2Fpatch-specs.sh;h=3307b6b0904501a83a5f8bc8824d91c9304c6fd1;hb=1a6ccdc0cf06a3ac2bfac9277e21d890bcca92f8;hp=2ab779084b8a78c9d4c3140116d7098d5ee204f6;hpb=0c3a38397429ea83220793aadd5c81b26040f158;p=openwrt%2F.git diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh index 2ab779084b..3307b6b090 100755 --- a/scripts/patch-specs.sh +++ b/scripts/patch-specs.sh @@ -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