From 30c6b995cbb5bdf3dc7adf2e79d8836660d4f295 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Tue, 1 Apr 2025 17:11:14 -0600 Subject: [PATCH] chore: remove unnecessary output --- mcontainer/drivers/goose/init-status.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mcontainer/drivers/goose/init-status.sh b/mcontainer/drivers/goose/init-status.sh index f0db9c1..2600d66 100644 --- a/mcontainer/drivers/goose/init-status.sh +++ b/mcontainer/drivers/goose/init-status.sh @@ -7,13 +7,9 @@ if [ "$(id -u)" != "0" ]; then fi # Quick check instead of full logic -if grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then - echo "MC initialization has completed." -else - echo "MC initialization is still in progress." +if ! grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then # Only follow logs if initialization is incomplete if [ -f "/init.log" ]; then - echo "Initialization is still in progress. Showing logs:" echo "----------------------------------------" tail -f /init.log & tail_pid=$! @@ -23,7 +19,6 @@ else if grep -q "INIT_COMPLETE=true" "/init.status" 2>/dev/null; then kill $tail_pid 2>/dev/null echo "----------------------------------------" - echo "Initialization completed." break fi sleep 1