#!/bin/bash # Shark scraper wrapper — silent on success, only outputs on failure cd /root/shark-game/scraper OUTPUT=$(python3 scrape.py 2>&1) EXIT=$? if [ $EXIT -ne 0 ]; then echo "Shark scraper FAILED (exit $EXIT):" echo "$OUTPUT" exit $EXIT fi # Success = silent, no output, no notification