diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/patch-specs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |