#[ -n "$$(git status --porcelain)" ]
check-uncommitted:
- @if [ -n "$$(git diff --quiet)" ] && [ -n "$$(git diff --cached --quiet)" ] && [ -n "$$(git ls-files --others --exclude-standard)" ]; then \
+ @if -n git diff --quiet && -n git diff --cached --quiet && [ -n "$$(git ls-files --others --exclude-standard)" ]; then \
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! ))"; \
+ 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; \