#!/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 DEST="${DEST:-$HOME/toes}" git clone https://git.nose.space/defunkt/toes "$DEST" && cd "$DEST" && ./scripts/install.sh SCRIPT