]> Git [git.vados.ru] :: Repos - Mikrotiks/ros.vados.ru.git/commitdiff
Autocommit in repo: ros.vados.ru, generated by owner: root, in 21:44:39 08.03.2026.
authorvados-dev <vados@vados.ru>
Sun, 8 Mar 2026 18:44:40 +0000 (21:44 +0300)
committervados-dev <vados@vados.ru>
Sun, 8 Mar 2026 18:44:40 +0000 (21:44 +0300)
bin/check_repo.sh

index 7612e134fbc568b13c0a18dc993463c1003c4241..70c69ea124246674ebf8d118a8109db0fba783a9 100755 (executable)
@@ -4,8 +4,9 @@ cd "${REPO_DIR:-.}"
 
 dirty="$(git status --porcelain || true)"
 diff="$(git diff --quiet && git diff --cached --quiet || true)"
-ls-files="$([ -z "$$(git ls-files --others --exclude-standard)" ] || true)"
-if [[ -n "$diff" && -n "$ls-files" ]]; then
+lsfiles="$([ -z "${git ls-files --others --exclude-standard}" ] || true)"
+
+if [[ -n "$diff" && -n "$lsfiles" ]]; then
     echo "[check] repo diff, go to proclean check."
     if [[ -n "$dirty" ]]; then
         echo "[check] repo dirty, stop"
@@ -16,7 +17,7 @@ if [[ -n "$diff" && -n "$ls-files" ]]; then
     fi
 else
     echo "[check] not clean. Go to autocommit him."
-    if [[ -n "$ls-files" ]]; then
+    if [[ -n "$lsfiles" ]]; then
         git add .
         git commit -m "${COMM_INFO}"
     else