You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
233 B

10 months ago
#!/usr/bin/sh
exit_code=0
for key in "$@"; do
echo >&2 "Info: Removing RPM GPG key: $key"
rpm --erase "$key" || {
exit_code=1
echo >&2 "Error: Failed to remove RPM GPG key: $key"
}
done
exit $exit_code