arch-pkgs/.repo/remove

18 lines
369 B
Text
Raw Normal View History

2021-07-22 03:46:19 +00:00
#!/bin/bash
set -uo pipefail
# shellcheck disable=SC2154
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
REPO_NAME=grawlinson
REPO_PATH="/var/lib/repo/$REPO_NAME"
REPO_EXT=".db.tar.xz"
repo-remove \
--sign \
"${REPO_PATH}/${REPO_NAME}${REPO_EXT}" \
"$@"
printf "Don't forget to remove the package files from the repository!\n"
exit 0