mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-28 15:57:43 +00:00
18 lines
500 B
Plaintext
18 lines
500 B
Plaintext
|
#! /bin/bash
|
||
|
|
||
|
MACPORTS_VERSION=2.7.1
|
||
|
MACOS_VERSION=$(sw_vers -productVersion)
|
||
|
case $MACOS_VERSION in
|
||
|
11.*)
|
||
|
MACOS_NAME=11-BigSur
|
||
|
;;
|
||
|
*)
|
||
|
error "Unknown MacOS Version"
|
||
|
esac
|
||
|
|
||
|
INSTALLER_NAME=MacPorts-${MACPORTS_VERSION}-${MACOS_NAME}.pkg
|
||
|
curl -o "${PROJECT_DIR}/${INSTALLER_NAME}" -L "https://github.com/macports/macports-base/releases/download/v${MACPORTS_VERSION}/${INSTALLER_NAME}"
|
||
|
|
||
|
xcode-select --install
|
||
|
sudo installer -pkg "${PROJECT_DIR}/${INSTALLER_NAME}" -target /
|