summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2020-10-07 10:44:14 +0000
committerjperkin <jperkin@pkgsrc.org>2020-10-07 10:44:14 +0000
commit071608faf469ad05e1f884941f3f3ecb73f3c00a (patch)
tree5c05f5ffbd9e0648d3b7abdd5d629545eefa1129 /bootstrap/bootstrap
parent3b85b9154fe52aac6978a52cb372b86573a9effd (diff)
downloadpkgsrc-071608faf469ad05e1f884941f3f3ecb73f3c00a.tar.gz
bootstrap: Fix numerical calculation on Big Sur.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap5
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