From 78fbd84eaadfc372e41f2d2a6d78afee08f2e102 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 22 Oct 2021 18:02:21 -0700 Subject: [PATCH] Add better logging in macports install --- recipes/mac-setup/macports | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/recipes/mac-setup/macports b/recipes/mac-setup/macports index 198694e..a9714bf 100755 --- a/recipes/mac-setup/macports +++ b/recipes/mac-setup/macports @@ -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 /