X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=blobdiff_plain;f=scripts%2Fpatch-specs.sh;h=3307b6b0904501a83a5f8bc8824d91c9304c6fd1;hp=2ab779084b8a78c9d4c3140116d7098d5ee204f6;hb=8fb8484d56e3c92bd3d75d5e69a50cdd75ac2a8c;hpb=e23aeca7d2e1bf518e4cf5a4e044acaa1cf10e44 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