TPTIP-4: исправить пропуск ненастроенной проверки в bash
All checks were successful
peppa/lint lint: success за 1с
peppa/test test: success за 1с
peppa/build build: success за 0с
ci / checks (pull_request) Successful in 8s
deploy / deploy (pull_request) Successful in 18s

This commit is contained in:
Peppa 2026-11-17 11:11:08 +05:00
parent d112e0e3fe
commit 31945da4a4

View File

@ -9,7 +9,7 @@ check="$1"
cfg=.peppa/project.json
cmd=$(jq -r --arg c "$check" '.checks[$c] // empty' "$cfg" 2>/dev/null)
if [[ -z "$cmd" ]]; then
echo "peppa: проверка «$check» не настроена — пропуск"
echo "peppa: проверка «${check}» не настроена — пропуск"
exit 0
fi
log=$(mktemp)