diff --git a/mpbb-cleanup b/mpbb-cleanup index c3fc4b2..aa584b8 100644 --- a/mpbb-cleanup +++ b/mpbb-cleanup @@ -81,11 +81,13 @@ cleanup() { DISK_FREE_THRESHOLD=15000000 if [[ ${BUILDBOT_BUILDERNAME:-unknown} == *-watcher || "$disk_free_before" -lt "$DISK_FREE_THRESHOLD" ]]; then - echo - echo "----> Uninstalling unneeded ports" - # $thisdir is set by mpbb and points to the directory in which this script resides - # shellcheck disable=SC2154 - "$(readlink "${option_prefix}/bin/port-tclsh")" "${thisdir}/tools/uninstall-unneeded-ports.tcl" + if [[ ${BUILDBOT_BUILDERNAME:-unknown} == *-watcher ]]; then + echo + echo "----> Uninstalling unneeded ports" + # $thisdir is set by mpbb and points to the directory in which this script resides + # shellcheck disable=SC2154 + "$(readlink "${option_prefix}/bin/port-tclsh")" "${thisdir}/tools/uninstall-unneeded-ports.tcl" + fi if [ ! -L "${option_prefix}/var/macports/distfiles" ]; then echo echo "----> Deleting distfiles"