#!/usr/bin/env bash
set -e

# Get absolute path of this script's directory
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
ROOT_DIR="$SCRIPT_DIR/.."

# Load config
source "$ROOT_DIR/scripts/config.sh"

# Run remote install on the target
ssh "$SSH_HOST" bash <<'SCRIPT'
set -e
curl -fsSL https://toes.dev/install | sh
SCRIPT
