Skip to content

Commit f9d47cf

Browse files
committed
Return script execute status
1 parent 8589fd2 commit f9d47cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/scripts/deploy_deepgit.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ pip install -r requirements.txt
2020
# restart nginx and gunicorn
2121
sudo systemctl restart nginx
2222
sudo systemctl restart gunicorn
23+
24+
# check bash status
25+
if [[ $? -eq 0 ]]; then
26+
echo "Script succeeded"
27+
else
28+
echo "Script failed"
29+
fi

0 commit comments

Comments
 (0)