#!/bin/sh
set -eu

installer_url="${ALUR_INSTALLER_URL:-https://github.com/happytoolin/alur/releases/latest/download/alur-installer.sh}"

if command -v curl >/dev/null 2>&1; then
  curl --proto '=https' --tlsv1.2 -LsSf "$installer_url" | sh
elif command -v wget >/dev/null 2>&1; then
  wget -qO- "$installer_url" | sh
else
  echo "alur installer requires curl or wget" >&2
  exit 1
fi
