1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-19 12:03:48 +01:00
strawberry-audio-player-win.../dist/macos/macversion.sh
2020-08-27 22:11:19 +02:00

15 lines
279 B
Bash
Executable File

#!/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