Skip to content

Commit dc2d69b

Browse files
committed
CI: Handle NetBSD RC in build_common.sh. [skip appveyor]
netbsd-mips64$ uname -r 10.0_RC1
1 parent d9dc66f commit dc2d69b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build_common.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,12 @@ os_id() {
226226
: "${os_id_version:=`uname -v`}"
227227
echo "${os_id_version}.${os_id_release}"
228228
;;
229-
Darwin|NetBSD|OpenBSD|SunOS)
229+
Darwin|OpenBSD|SunOS)
230230
echo "$os_id_release"
231231
;;
232-
FreeBSD|Linux)
232+
FreeBSD|NetBSD|Linux)
233233
# Meaningful version is usually the substring before the first dash.
234+
# Or the first underscore.
234235
echo "$os_id_release" | sed 's/^\([0-9\.]*\).*$/\1/'
235236
;;
236237
Haiku)

0 commit comments

Comments
 (0)