From: vados-dev Date: Fri, 6 Mar 2026 16:57:44 +0000 (+0300) Subject: Auto-commit: Makefile updated on 3/6/2026 X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=25647adcd32eb7d05f75cc0182447b90090233b0;p=Mikrotiks%2Fros.vados.ru.git Auto-commit: Makefile updated on 3/6/2026 --- diff --git a/Makefile b/Makefile index 5f8527bf2..9f2448f34 100644 --- a/Makefile +++ b/Makefile @@ -60,10 +60,10 @@ commit: check-uncommitted #[ -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; \