1334cfaf92
Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
463 B
Bash
16 lines
463 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
VENV="/tmp/spruce_venv"
|
|
|
|
if [[ ! -x "$VENV/bin/python" ]]; then
|
|
echo "Setting up venv at $VENV..."
|
|
python3 -m venv "$VENV"
|
|
"$VENV/bin/python" -m ensurepip --upgrade
|
|
"$VENV/bin/pip" install -q -r "$SCRIPT_DIR/requirements.txt"
|
|
fi
|
|
|
|
echo "Starting metadata-only scan of all machines..."
|
|
"$VENV/bin/python" "$SCRIPT_DIR/scraper.py" --metadata-only "$@"
|