From 8b8e50aeaf47f3bd3a08a32a44fc69b8f04a3934 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Jun 2025 10:14:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- bin/winapps | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/winapps b/bin/winapps index 69e15fc..c4815ca 100755 --- a/bin/winapps +++ b/bin/winapps @@ -481,7 +481,7 @@ function waCheckContainerRunning() { if [[ "$CONTAINER_STATE" == "created" || "$CONTAINER_STATE" == "exited" || "$CONTAINER_STATE" == "dead" ]]; then dprint "WAITING FOR CONTAINER TO BE FULLY READY..." notify-send --expire-time=4000 --icon="dialog-info" --app-name="WinApps" --urgency="low" "WinApps" "Waiting for Windows to be ready..." - + while (( WAIT_ELAPSED < MAX_WAIT_TIME )); do # Check if container is running if [[ $("$WAFLAVOR" inspect --format='{{.State.Status}}' "$CONTAINER_NAME") == "running" ]]; then @@ -496,16 +496,16 @@ function waCheckContainerRunning() { break fi fi - + sleep 5 WAIT_ELAPSED=$((WAIT_ELAPSED + 5)) - + # Show progress every 30 seconds if (( WAIT_ELAPSED % 30 == 0 )); then notify-send --expire-time=4000 --icon="dialog-info" --app-name="WinApps" --urgency="low" "WinApps" "Still waiting for Windows to be ready... ($((WAIT_ELAPSED/60)) minutes elapsed)" fi done - + # If we timed out waiting for the container if (( WAIT_ELAPSED >= MAX_WAIT_TIME )); then dprint "TIMEOUT WAITING FOR CONTAINER TO BE READY"