From a53415701cd65208f9db50ec2f2890514e4173de Mon Sep 17 00:00:00 2001 From: gidskql6671 Date: Fri, 24 May 2024 15:36:40 +0900 Subject: [PATCH] TEST --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d638896..7dbf025 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -39,8 +39,9 @@ jobs: server_pid=(${server_process// / }) server_pid=${server_pid[1]} - echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid - sleep 5 + if [ -n "$server_pid" ]; then + echo $REMOTE_SSH_PASSWORD | sudo -S kill -9 $server_pid + fi echo TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT ps -ef | grep OneDayOneBaek-0.0.1-SNAPSHOT.jar | grep java