Update macOS CI

This commit is contained in:
Jonas Kvinge
2020-08-26 22:35:18 +02:00
parent f3f51c3d9d
commit 49c71ecfad
5 changed files with 65 additions and 24 deletions

14
dist/macos/macversion.sh vendored Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
macos_version=$(sw_vers -productVersion| awk -F '[.]' '{print $2}')
macos_codenames=(
["13"]="highsierra"
["14"]="mojave"
["15"]="catalina"
)
if [[ -n "${macos_codenames[$macos_version]}" ]]; then
echo "${macos_codenames[$macos_version]}"
else
echo "unknown"
fi