echo "Warning: Uncommitted changes detected! Go to autocommit steps..."; \
else \
echo "The first checks have been passed, the repo seems to be clean... But... Still, let's check a little more!"; \
- @if [ -n "$$(git status --porcelain)" ]; then \
- echo "Repository is clean (no uncommitted or untracked changes). Exit 0."; \
- exit 0; \
- else \
+ if git status --porcelain; then \
echo "Error! Git status is not porcelain! Check it mannualy. Exit 1."; \
exit 1; \
+ else \
+ echo "Repository is clean (no uncommitted or untracked changes). Exit 0."; \
+ exit 0; \
fi \
fi