diff options
author | EuAndreh <eu@euandre.org> | 2023-03-20 14:37:34 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-21 07:34:35 -0300 |
commit | 58167062f674cbc5ac97991a921a1ac92118101c (patch) | |
tree | d39312ce189e459a46b0d1d41ffedf1e1c1063fa /tests/checks | |
parent | queue.scm: Remove (mail-in-home? ...) option from Postfix and Dovecot (diff) | |
download | package-repository-58167062f674cbc5ac97991a921a1ac92118101c.tar.gz package-repository-58167062f674cbc5ac97991a921a1ac92118101c.tar.xz |
Big revamp of paku(1): now in Perl, genating Debian packages
Diffstat (limited to 'tests/checks')
-rwxr-xr-x | tests/checks/deb.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/checks/deb.sh b/tests/checks/deb.sh new file mode 100755 index 0000000..04bfcd1 --- /dev/null +++ b/tests/checks/deb.sh @@ -0,0 +1,23 @@ +#!/bin/sh +set -eu + + +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 |