]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Auto-commit: check_repo.sh updated on 3/12/2026, 2026-03-12T00:47:31.523Z
authorvados-dev <192440777+vados-dev@users.noreply.github.com>
Thu, 12 Mar 2026 00:47:31 +0000 (03:47 +0300)
committervados-dev <192440777+vados-dev@users.noreply.github.com>
Thu, 12 Mar 2026 00:47:31 +0000 (03:47 +0300)
bin/check_repo.sh

index 1ecb927dc709d3cad0ee712618e8f446c7f73734..03e2e2abcca51c21c98b533f76cb8881caa45a15 100755 (executable)
@@ -12,13 +12,13 @@ if [[ -n "$dirty" ]]; then
     printf "%s\n" "$dirty"
     echo "[check_repo] resolve conflicts and run: git add <files> && git commit"
     bash bin/notify_telegram.sh "STOP: repo conflicts in $(pwd)"
-    exit 1
+    exit 2
 fi
 
 # Exit 0 only when repo is NOT clean to allow autocommit flow.
 if git diff --quiet && git diff --cached --quiet && [[ -z "$lsfiles" ]]; then
     echo "[check_repo] repo clean. Exit 1 from check_repo.sh."
-    exit 1
+    exit 2
 else
     echo "[check_repo] repo not clean. Exit 0 from check_repo.sh."
     exit 0