From a2e657eb7e396719fce9501519fed110d15254c2 Mon Sep 17 00:00:00 2001 From: vados-dev Date: Sun, 8 Mar 2026 21:47:08 +0300 Subject: [PATCH] Autocommit in repo: ros.vados.ru, generated by owner: root, in 21:47:07 08.03.2026. --- bin/check_repo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/check_repo.sh b/bin/check_repo.sh index 148f5aa77..e8d81c97e 100755 --- a/bin/check_repo.sh +++ b/bin/check_repo.sh @@ -4,9 +4,9 @@ cd "${REPO_DIR:-.}" dirty="$(git status --porcelain || true)" diff="$(git diff --quiet && git diff --cached --quiet || true)" -lsfiles="$([ -z git ls-files --others --exclude-standard ] || true)" +lsfiles="$(git ls-files --others --exclude-standard || true)" -if [[ -n "$diff" && -n "$lsfiles" ]]; then +if [[ -n "$diff" && -z "$lsfiles" ]]; then echo "[check] repo diff, go to proclean check." if [[ -n "$dirty" ]]; then echo "[check] repo dirty, stop" @@ -17,7 +17,7 @@ if [[ -n "$diff" && -n "$lsfiles" ]]; then fi else echo "[check] not clean. Go to autocommit him." - if [[ -n "$lsfiles" ]]; then + if [[ -z "$lsfiles" ]]; then git add . git commit -m "${COMM_INFO}" else -- 2.52.0