From: vados-dev Date: Fri, 6 Mar 2026 16:54:28 +0000 (+0300) Subject: Auto-commit: Makefile updated on 3/6/2026 X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=bc763ee2f0e3b28bea3d820b09c88738f430a0d0;p=Mikrotiks%2Fros.vados.ru.git Auto-commit: Makefile updated on 3/6/2026 --- diff --git a/Makefile b/Makefile index 871d3f127..5f8527bf2 100644 --- a/Makefile +++ b/Makefile @@ -60,15 +60,18 @@ 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 :; 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; \ + @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 "Error! Git status is not porcelain! Check it mannualy. Exit 1."; \ - exit 1; \ - fi + 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 \ + echo "Error! Git status is not porcelain! Check it mannualy. Exit 1."; \ + exit 1; \ + fi \ + fi # if [[ -n "`$(rungit) status --porcelain`" ]];: then \