aboutsummaryrefslogblamecommitdiff
path: root/tests/checks/deb.sh
blob: 90ed7f95679732fe5d696339daec0c56148479fe (plain) (tree)
1
2
3

         
      




















                                                                          
#!/bin/sh
set -eu
set -x


REPO="$1/debian"
KEY="$(printf '%s' "${REPO#https://}" | sed 's|/|-|g').asc"

if command -v remembering; then
	echo 'remembering(1) is already installed.' >&2
	exit 1
fi

if apt info remembering; then
	echo 'remembering(1) is already in apt(8) list.' >&2
	exit 1
fi

wget -qO- "$REPO"/public-key.asc  | sudo tee /etc/apt/trusted.gpg.d/"$KEY"
sudo apt-add-repository "deb $REPO ./"
sudo apt install remembering

remembering --help
remembering -V