X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e23aeca7d2e1bf518e4cf5a4e044acaa1cf10e44..f59b34bf027b120847fc9d4192914d03f9d06d64:/scripts/patch-specs.sh diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh index 2ab779084..3307b6b09 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