From f3e7828462e4419441b99ed08151a0e2b0b1ea3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Le=20Barbier?= Date: Sat, 15 Jun 2024 07:09:02 +0200 Subject: [PATCH] fixup! Install MacPorts under an arbitrary prefix --- .github/workflows/continuous-integration.yaml | 2 +- install_macports | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 36f3293..af8e0dc 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -43,7 +43,7 @@ jobs: test "$(port version)" = 'Version: ${{ matrix.version }}' - name: 'Validate transmitted MacPorts prefix' run: >- - test "${{ steps.macports.outputs.prefix }}" = '${{ matrix.prefix }}' + test "${{ steps.macports.outputs.prefix }}" = '/opt/${{ matrix.prefix }}' - name: 'Validate transmitted MacPorts version' run: >- test "${{ steps.macports.outputs.version }}" = '${{ matrix.version }}' diff --git a/install_macports b/install_macports index db288d5..2b789db 100755 --- a/install_macports +++ b/install_macports @@ -176,7 +176,7 @@ install_from_source() make sudo make install ) - rm -Rf "${srcdir}" + sudo rm -Rf "${srcdir}" } install_ports()