]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Auto-commit: Makefile updated on 3/6/2026
authorvados-dev <vados@vados.ru>
Fri, 6 Mar 2026 17:00:09 +0000 (20:00 +0300)
committervados-dev <vados@vados.ru>
Fri, 6 Mar 2026 17:00:09 +0000 (20:00 +0300)
Makefile

index 9f2448f34c679ae60ec4c54d3d5f91536315301c..ddcfad0492d6721c022509560296d99b56b15d5a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,12 +64,12 @@ check-uncommitted:
                        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