check-autofix.sh 385 B

123456789101112131415
  1. #!/bin/bash
  2. if ! command -v autofix &> /dev/null; then
  3. echo "Autofix Bot CLI not found. Installing..."
  4. curl -fsSL https://autofix.bot/install | sh
  5. if ! command -v autofix &> /dev/null; then
  6. echo "ERROR: Failed to install autofix. Please install manually:" >&2
  7. echo " curl -fsSL https://autofix.bot/install | sh" >&2
  8. exit 2
  9. fi
  10. fi
  11. echo "Autofix Bot ready"
  12. exit 0