diff --git a/src/_base/harness/scripts/enable.sh.twig b/src/_base/harness/scripts/enable.sh.twig index a5337ab82..25088f19c 100755 --- a/src/_base/harness/scripts/enable.sh.twig +++ b/src/_base/harness/scripts/enable.sh.twig @@ -35,7 +35,9 @@ enable_all() if [ "$HAS_FLAG" = no ]; then # remove all services, keeping console if considered built if console_enabled; then - passthru "${COMPOSE_BIN[*]} ps --services | grep -v -Fxe console | xargs ${COMPOSE_BIN[*]} rm --force --stop --" + if [ -n "$("${COMPOSE_BIN[@]}" ps --services | grep -v -Fxe console)" ]; then + passthru "${COMPOSE_BIN[*]} ps --services | grep -v -Fxe console | xargs ${COMPOSE_BIN[*]} rm --force --stop --" + fi else passthru "${COMPOSE_BIN[@]}" down fi