Update fido2-manage.sh

This commit is contained in:
Token2
2024-06-10 15:55:27 +02:00
committed by GitHub
parent da70074676
commit e64e3dc456

View File

@@ -194,9 +194,11 @@ if [[ -n $device ]]; then
fi
# Fingerprint enrollment
if $storage; then
if $fingerprint; then
echo "Enrolling fingerprints (for bio models only)"
$FIDO2_TOKEN_CMD -S -e "$device_string" $([[ -n $pin ]] && echo "-w $pin")
exit 0
fi
# Main logic
if $storage; then
$FIDO2_TOKEN_CMD -I -c "$device_string" $([[ -n $pin ]] && echo "-w $pin")