Fixing command that excludes 'out' directory from list outputted by git status for checking if Git status of directory is clean.

This commit is contained in:
Ruben Ayrapetyan
2014-08-04 22:10:42 +04:00
parent 304098a984
commit 8c2e5b1f7a
+1 -1
View File
@@ -108,7 +108,7 @@ precommit: clean git_status_pre_test_check build
@ echo -e "Parse-only testing completed successfully. Starting full tests run.\n"
@ echo -e "\e[0;31mFIXME:\e[0m Full testing skipped.\n"; # $(MAKE) -s $(PRECOMMIT_CHECK_TARGETS_LIST) TESTS_DIR=./tests/jerry OUTPUT_TO_LOG=enable
@ echo -e "Full testing completed successfully\n\n================\n\n"
@ if [ "`git status --porcelain 2>&1 | grep -v -e '^?? out/$' | wc -l`" == "0" ]; \
@ if [ "`git status --porcelain 2>&1 | grep -v -e '^?? out/$$' | wc -l`" == "0" ]; \
then \
echo -e "\e[0;32m OK to push\e[0m"; \
else \