Handling git push non-zero exit code in tools/push.sh.
This commit is contained in:
1 parent
8afbb39df0
commit
440a3c64a2
2 files changed
+3
-5
No files matched your search
+1
-3
@@ -103,9 +103,7 @@ then
|
||||
echo "Pushing..."
|
||||
echo
|
||||
|
||||
git push
|
||||
|
||||
echo -e "\n\e[0;32m Pushed successfully\e[0m\n"
|
||||
git push && echo -e "\n\e[0;32m Pushed successfully\e[0m\n" || echo -e "\n\e[1;33m Push failed\e[0m"
|
||||
exit 0
|
||||
else
|
||||
echo -e "\e[1;33m $GIT_STATUS_NOT_CLEAN_MSG. $GIT_STATUS_CONSIDER_CLEAN_MSG.\e[0m\n"
|
||||
|
||||
Reference in new issue
Block a user