Files
TG3/tg3_local_teleop/status.sh

10 lines
270 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ ! -f "$APP_DIR/status.json" ]]; then
echo "status.json does not exist; the bridge has not produced status yet"
exit 1
fi
python3 -m json.tool "$APP_DIR/status.json"