Files
hate_crack/wordlists/kill_transmission.sh
Justin Bollinger de2b400f6d chore: align CI and tooling with global development standards
- Remove 6 duplicate per-version pytest workflows (matrix build covers all)
- Pin GitHub Actions to SHA hashes with version comments
- Add persist-credentials: false to checkout steps
- Replace mypy with ty for type checking (faster, stricter)
- Pin dev deps to exact versions (ty==0.0.17, ruff==0.15.1, pytest==9.0.2, pytest-cov==7.0.0)
- Remove types-* stub packages (ty doesn't need them)
- Remove stale [dependency-groups] section from pyproject.toml
- Update shell scripts to use set -euo pipefail
- Add prek.toml for git hook management (pre-push, post-commit)
- Add lint-infra.yml workflow (shellcheck + actionlint)
- Fix actionlint warning: pass github.head_ref through env var
- Track CLAUDE.md and .claude/ scripts in git
- Update README.md and Makefile references from mypy to ty

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 12:42:51 -05:00

28 lines
695 B
Bash
Executable File

#!/bin/bash
#
set -euo pipefail
TORRENT_DIR="${TR_TORRENT_DIR:-}"
TORRENT_NAME="${TR_TORRENT_NAME:-}"
if [ -z "$TORRENT_DIR" ] || [ -z "$TORRENT_NAME" ]; then
exit 0
fi
TORRENT_PATH="${TORRENT_DIR}/${TORRENT_NAME}"
SEVENZ_BIN=$(command -v 7z || command -v 7za || true)
if [ -n "$SEVENZ_BIN" ]; then
if [ -f "$TORRENT_PATH" ] && [[ "$TORRENT_PATH" == *.7z ]]; then
"$SEVENZ_BIN" x -sdel "$TORRENT_PATH" -o"$TORRENT_DIR"
elif [ -d "$TORRENT_PATH" ]; then
find "$TORRENT_PATH" -maxdepth 2 -type f -name "*.7z" -print0 | while IFS= read -r -d '' zfile; do
"$SEVENZ_BIN" e -sdel "$zfile"
done
fi
fi
if [ -n "$PPID" ]; then
kill "$PPID"
fi