mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-09-29 04:28:06 -05:00
refactor(scrape): extract shared scrape-lock library
Centralize archive-root lock path, held checks, holder formatting, and reclaim helpers in scripts/lib/scrape-lock.sh. Source it from the host runner, lock status script, and operator wrappers to remove duplicated logic. Update documents-scrape smoke fake repo to include the new lib.
This commit is contained in:
@@ -14,6 +14,7 @@ FAKE_REPO="$TMP_DIR/fake-repo"
|
||||
mkdir -p "$FAKE_REPO/scripts/lib"
|
||||
cp "$REPO_ROOT/scripts/run-discord-scrape-host.sh" "$FAKE_REPO/scripts/"
|
||||
cp "$REPO_ROOT/scripts/lib/scrape-run-plan.sh" "$FAKE_REPO/scripts/lib/"
|
||||
cp "$REPO_ROOT/scripts/lib/scrape-lock.sh" "$FAKE_REPO/scripts/lib/"
|
||||
chmod +x "$FAKE_REPO/scripts/run-discord-scrape-host.sh"
|
||||
|
||||
COMPOSE_FILE="$TMP_DIR/docker-compose.yml"
|
||||
|
||||
Reference in New Issue
Block a user