Handling git push non-zero exit code in tools/push.sh.

This commit is contained in:
Ruben Ayrapetyan
2014-08-06 14:51:37 +04:00
parent 8afbb39df0
commit 440a3c64a2
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -97,7 +97,7 @@ endif
# Optimizations
ifeq ($(filter-out debug_release release $(TESTS_TARGET),$(TARGET_MODE)),)
OPTION_OPTIMIZE = enable
OPTION_OPTIMIZE = disable #enable
else
OPTION_OPTIMIZE = disable
endif
@@ -167,7 +167,7 @@ CFLAGS_WFATAL_ERRORS ?= -Wfatal-errors
# Optimizations
CFLAGS_OPTIMIZE ?= -Os -flto
CFLAGS_NO_OPTIMIZE ?= -Og
CFLAGS_NO_OPTIMIZE ?= -O0
LDFLAGS_OPTIMIZE ?=
LDFLAGS_NO_OPTIMIZE ?=
+1 -3
View File
@@ -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"