We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dc66f commit dc2d69bCopy full SHA for dc2d69b
build_common.sh
@@ -226,11 +226,12 @@ os_id() {
226
: "${os_id_version:=`uname -v`}"
227
echo "${os_id_version}.${os_id_release}"
228
;;
229
- Darwin|NetBSD|OpenBSD|SunOS)
+ Darwin|OpenBSD|SunOS)
230
echo "$os_id_release"
231
232
- FreeBSD|Linux)
+ FreeBSD|NetBSD|Linux)
233
# Meaningful version is usually the substring before the first dash.
234
+ # Or the first underscore.
235
echo "$os_id_release" | sed 's/^\([0-9\.]*\).*$/\1/'
236
237
Haiku)
0 commit comments