#!/usr/bin/env bash
#
# kristoffer.dev/dotfiles — this address has moved.
#
# The installer now lives in the dotfiles repo, next to the configs it links,
# so the two cannot drift apart:
#
#   curl -fsSL https://install.kristoffer.dev/dotfiles | bash
#   https://github.com/KristofferRisa/dotfiles/blob/main/install.sh
#
# This file stays for links made before the move. It fetches that script and
# runs it with the same arguments. Read it first:
# https://raw.githubusercontent.com/KristofferRisa/dotfiles/main/install.sh
#
# Everything is inside main(), called on the last line, so a download that is
# cut off halfway runs nothing at all.

set -euo pipefail

INSTALLER="https://raw.githubusercontent.com/KristofferRisa/dotfiles/main/install.sh"

main() {
  printf 'kristoffer.dev/dotfiles/install.sh has moved. Running %s\n\n' "$INSTALLER" >&2
  curl -fsSL "$INSTALLER" | bash -s -- "$@"
}

main "$@"
