Skip to content

Commit

Permalink
(PA-5287) Remove Mac OS 10.x support
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamshinde360 committed May 24, 2023
1 parent 40c7ce2 commit 5ecab9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion spec/classes/puppet_agent_osfamily_darwin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
let(:params) { { package_version: package_version } }

context 'when running a supported macOS' do
['osx-10.15-x86_64', 'osx-11-x86_64', 'osx-12-x86_64'].each do |tag|
['osx-11-x86_64', 'osx-12-x86_64'].each do |tag|
context "on #{tag} with no aio_version" do
let(:osmajor) { tag.split('-')[1] }

Expand Down
11 changes: 2 additions & 9 deletions tasks/install_shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,10 @@ if [ -f "$PT__installdir/facts/tasks/bash.sh" ]; then

major_version=`echo $platform_version | cut -d. -f1,2`

# Excepting macOS 10.x, the major version is the first number only
if ! echo "${major_version}" | grep -q '^10\.'; then
major_version=$(echo "${major_version}" | cut -d '.' -f 1);
fi
# The major version is the first number only
major_version=$(echo "${major_version}" | cut -d '.' -f 1);

case $major_version in
"10.11") platform_version="10.11";;
"10.12") platform_version="10.12";;
"10.13") platform_version="10.13";;
"10.14") platform_version="10.14";;
"10.15") platform_version="10.15";;
"11") platform_version="11";;
"12") platform_version="12";;
*) echo "No builds for platform: $major_version"
Expand Down

0 comments on commit 5ecab9d

Please sign in to comment.