diff options
author | jperkin <jperkin@pkgsrc.org> | 2020-10-07 10:44:14 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2020-10-07 10:44:14 +0000 |
commit | 071608faf469ad05e1f884941f3f3ecb73f3c00a (patch) | |
tree | 5c05f5ffbd9e0648d3b7abdd5d629545eefa1129 /bootstrap/bootstrap | |
parent | 3b85b9154fe52aac6978a52cb372b86573a9effd (diff) | |
download | pkgsrc-071608faf469ad05e1f884941f3f3ecb73f3c00a.tar.gz |
bootstrap: Fix numerical calculation on Big Sur.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 9b45398aece..e7c01021d66 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.293 2020/08/29 20:11:21 js Exp $ +# $NetBSD: bootstrap,v 1.294 2020/10/07 10:44:14 jperkin Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -562,7 +562,8 @@ Darwin) osrev=`uname -r` # Combine major.minor product version for simpler numerical tests. - macos_version=`sw_vers -productVersion | awk -F. '{print $1 $2}'` + macos_version=`sw_vers -productVersion | \ + awk -F. '{ printf("%02d%02d", $1, $2) }'` # Newer native sed does not support multibyte correctly. if [ $macos_version -ge 1008 ]; then |