fix: keep clean-clone release checks portable

This commit is contained in:
public-repo-gate
2026-09-16 00:30:29 +03:00
parent 2a1ce2297a
commit 24d0dc21b9
10 changed files with 1973 additions and 1941 deletions
+4
View File
@@ -58,6 +58,10 @@ PYCHK
}
if [ "${1:-}" = "--selftest" ]; then
if ! python3 -c 'from PIL import Image, ImageDraw' >/dev/null 2>&1; then
echo "SELFTEST SKIP: нет необязательной dev-зависимости Pillow"
exit 0
fi
TMP=$(mktemp -d); trap 'rm -rf "$TMP"' EXIT
ok=0
python3 - "$TMP" <<'PYGEN'