Changeset View
Changeset View
Standalone View
Standalone View
share/pgpkeys/checkkey.sh
Context not available. | |||||
elif echo "${id}" | egrep -q '^[0-9A-F]{8}$'; then | elif echo "${id}" | egrep -q '^[0-9A-F]{8}$'; then | ||||
id_type="keyid" | id_type="keyid" | ||||
set -- "${id}" $@ | set -- "${id}" $@ | ||||
elif echo "${id}" | egrep -iq '^[a-z][-0-9a-z_]*@([-0-9a-z]+\.)[-0-9a-z]+$'; then | elif echo "${id}" | egrep -iq '^[0-9a-z][-0-9a-z_]*@([-0-9a-z]+\.)[-0-9a-z]+$'; then | ||||
id_type="email" | id_type="email" | ||||
email="${id}" | email="${id}" | ||||
elif echo "${id}" | egrep -iq '^[a-z][-0-9a-z_]*$'; then | elif echo "${id}" | egrep -iq '^[0-9a-z][-0-9a-z_]*$'; then | ||||
id_type="login" | id_type="login" | ||||
login="${id}" | login="${id}" | ||||
email="${id}@FreeBSD.org" | email="${id}@FreeBSD.org" | ||||
Context not available. |