summaryrefslogtreecommitdiff
path: root/external_plugins/autofix-bot/scripts/check-autofix.sh
blob: 3917a59783bf27660594f86f7a56d2eeb76d9d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if ! command -v autofix &> /dev/null; then
  echo "Autofix Bot CLI not found. Installing..."
  curl -fsSL https://autofix.bot/install | sh

  if ! command -v autofix &> /dev/null; then
    echo "ERROR: Failed to install autofix. Please install manually:" >&2
    echo "  curl -fsSL https://autofix.bot/install | sh" >&2
    exit 2
  fi
fi

echo "Autofix Bot ready"
exit 0