X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e23aeca7d2e1bf518e4cf5a4e044acaa1cf10e44..1f93aa565e0aa68b1eafdd1c62fd231b46d1984b:/scripts/patch-specs.sh?ds=sidebyside 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