fix(auditing): audit_pipeline.sh contract + executable bit
- Pass SCRAPER_OUT as a directory (multi_scraper.py 3rd arg is an OUT_DIR, not a file); previously produced IsADirectoryError at the engine step - chmod +x so './audit_pipeline.sh' works directly
This commit is contained in:
Regular → Executable
+3
-3
@@ -14,13 +14,13 @@ OUTPUT_DIR="${3:-}"
|
|||||||
WORK_DIR=$(mktemp -d /tmp/veripath.XXXXXX)
|
WORK_DIR=$(mktemp -d /tmp/veripath.XXXXXX)
|
||||||
trap 'rm -rf "$WORK_DIR"' EXIT
|
trap 'rm -rf "$WORK_DIR"' EXIT
|
||||||
|
|
||||||
SCRAPER_OUT="$WORK_DIR/multi_surface.json"
|
|
||||||
ENGINE_ARGS=("--md")
|
ENGINE_ARGS=("--md")
|
||||||
|
|
||||||
echo "[$(date +%T)] Scraping: $BUSINESS @ $LOCATION"
|
echo "[$(date +%T)] Scraping: $BUSINESS @ $LOCATION"
|
||||||
|
|
||||||
# Step 1: Multi-surface extraction
|
# Step 1: Multi-surface extraction (3rd arg = output DIR; scraper writes <dir>/multi_surface.json/<file>.json)
|
||||||
uv run python3 "$SCRIPT_DIR/multi_scraper.py" "$BUSINESS" "$LOCATION" "$SCRAPER_OUT"
|
uv run python3 "$SCRIPT_DIR/multi_scraper.py" "$BUSINESS" "$LOCATION" "$WORK_DIR"
|
||||||
|
SCRAPER_OUT=$(find "$WORK_DIR" -name "*multi_surface*.json" | head -1)
|
||||||
if [ ! -s "$SCRAPER_OUT" ]; then
|
if [ ! -s "$SCRAPER_OUT" ]; then
|
||||||
echo "[FAIL] multi_scraper.py produced no output" >&2
|
echo "[FAIL] multi_scraper.py produced no output" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user