summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/patch-specs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/patch-specs.sh b/scripts/patch-specs.sh
index 2ab7790..3307b6b 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