run: check
@echo "[run] start main flow"
-
+
# ...
@echo "[run] done"
cd $ &&
@if git diff --quiet && git diff --cached --quiet && [ -z "$$(git ls-files --others --exclude-standard)" ]; then \
echo "The first checks have been passed, the repo seems to be clean... But... Still, let's check a little more!"; \
- git add . && ; \
- if [[ -n git status --porcelain ]]; then \
+ git add . && \
+ if [[ -n "$$(git status --porcelain)" ]]; then \
echo "Uncommitted changes detected! Commit it..."; \
# git commit -m "$(COMM_INFO)"; \
# git push; \
fi \
else \
@echo "Warning: Uncommitted changes detected! Go to autocommit steps..."; \
-# git branch -v; \
+ git branch -v; \
# git commit -am "$(COMM_INFO)"; \
# git push; \
fi