Add better logging in macports install

This commit is contained in:
ViViDboarder 2021-10-22 18:02:21 -07:00
parent cd144bbfcf
commit 78fbd84eaa

View File

@ -11,7 +11,12 @@ case $MACOS_VERSION in
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}"
log "Download $INSTALLER_NAME"
curl -o "${PROJECT_DIR}/tmp/${INSTALLER_NAME}" -L "https://github.com/macports/macports-base/releases/download/v${MACPORTS_VERSION}/${INSTALLER_NAME}"
log "Install xcode tools"
xcode-select --install
sudo installer -pkg "${PROJECT_DIR}/${INSTALLER_NAME}" -target /
log "Run macports installer"
sudo installer -pkg "${PROJECT_DIR}/tmp/${INSTALLER_NAME}" -target /