Skip to content

Commit

Permalink
Use common method _check_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
fredg02 committed May 16, 2024
1 parent b832aca commit d16deb2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions gpg/gpg_key_admin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,7 @@ revoke() {

sign() {
local project_name="${1:-}"

# check that project name is not empty
if [[ -z "${project_name}" ]]; then
printf "ERROR: a project name must be given (e.g. technology.cbi for CBI project).\n"
exit 1
fi
_check_parameter "project name" "project_name"

echo "allow-loopback-pinentry" > "${TMP_GPG}/gpg-agent.conf"
# import webmaster's key
Expand Down

0 comments on commit d16deb2

Please sign in to comment.