#!/bin/bash
set -euo pipefail

# This script will take care of downloading the public GPG key for this repository
# to Apt's trusted.gpg.d folder and add an source list file to Apt's sources.list.d
# folder for you
#
# You can run these or similar commands yourself to achive the same outcome if you
# so wish, this script is just here to automate the process some


curl --silent --show-error --ssl-reqd https://repo.easthighnerd.net/0CB6DCC355FE5AC52E0CADE96743DBD900F63D0A.asc | \
gpg --dearmor | \
sudo tee /etc/apt/trusted.gpg.d/easthighnerd.gpg 1> /dev/null

cat << EOF | sudo tee /etc/apt/sources.list.d/easthighnerd.list 1> /dev/null
deb	https://repo.easthighnerd.net	bookworm	main
EOF
