Skip to content

Commit

Permalink
Fix minor script issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zifah authored Aug 5, 2024
1 parent b389564 commit 6331396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/api-deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ jobs:
sudo systemctl restart $SERVICE_NAME
sleep 3
STATUS=\$(sudo systemctl is-active $SERVICE_NAME)
echo \"The service $SERVICE_NAME is currently \${STATUS}\"
if [ -z \$STATUS]; then
echo \"The service $SERVICE_NAME is currently \$STATUS\"
if [ -z \$STATUS ]; then
echo 'Service status is empty or not defined'
exit 1
elif [ \$STATUS != 'active' ]; then
Expand Down

0 comments on commit 6331396

Please sign in to comment.