Update setup.sh

Catalina GM sounds have headers directly installed
This commit is contained in:
superpoussin22
2019-10-08 21:25:10 +02:00
committed by GitHub
parent 04385049ff
commit 20894ac659
+1 -1
View File
@@ -24,7 +24,7 @@ if [[ "$unamestr" == 'Darwin' ]]; then
minor=$(echo "$current_macos_version" | cut -d'.' -f2)
is_installed=$(pkgutil --pkgs=com.apple.pkg.macOS_SDK_headers_for_macOS_${current_macos_version})
if [ -z "$is_installed" ]; then
if [ "$major" -ge "10" ] && [ "$minor" -ge "14" ]; then
if [ "$major" -ge "10" ] && [ "$minor" -lt "15" ]; then
echo 'Please install command-line tools and macOS headers.'
echo 'xcode-select --install'
echo "sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_${current_macos_version}.pkg -target /"