From 39d7adc72f623de2c7a6a89794cb1497f9e758a7 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Fri, 12 May 2023 11:15:22 +0000 Subject: [PATCH] Fix early exit --- .github/workflows/images-debian.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/images-debian.yml b/.github/workflows/images-debian.yml index f57cee5..bf62af8 100644 --- a/.github/workflows/images-debian.yml +++ b/.github/workflows/images-debian.yml @@ -58,10 +58,8 @@ jobs: ssh root@$IP systemctl start images-debian --no-block - ssh root@$IP systemctl status images-debian - while [[ $? == 3 ]]; do - sleep 1s - ssh root@$IP systemctl status images-debian + while ssh root@$IP systemctl status images-debian; [[ $ret == 3 ]]; do + sleep 1m done scp root@$IP:/var/log/images-debian.log .