From: vados-dev Date: Sun, 8 Mar 2026 18:44:40 +0000 (+0300) Subject: Autocommit in repo: ros.vados.ru, generated by owner: root, in 21:44:39 08.03.2026. X-Git-Url: https://git.vados.ru/gitweb.cgi?a=commitdiff_plain;h=ab2e094889a504e92364724cf6de4dc038fd44a8;p=Mikrotiks%2Fros.vados.ru.git Autocommit in repo: ros.vados.ru, generated by owner: root, in 21:44:39 08.03.2026. --- diff --git a/bin/check_repo.sh b/bin/check_repo.sh index 7612e134f..70c69ea12 100755 --- a/bin/check_repo.sh +++ b/bin/check_repo.sh @@ -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