oem-factory-reset: remove duplicate output 'Checking for USB Security dongle...'

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
Thierry Laurion 2024-12-19 15:10:54 -05:00
parent 97121ab86e
commit eb63d4d46a
No known key found for this signature in database
GPG Key ID: 9A53E1BB3FF00461

View File

@ -1202,7 +1202,6 @@ fi
# ensure USB Security dongle connected if GPG_GEN_KEY_IN_MEMORY=n or if GPG_GEN_KEY_IN_MEMORY_COPY_TO_SMARTCARD=y
if [ "$GPG_GEN_KEY_IN_MEMORY" = "n" -o "$GPG_GEN_KEY_IN_MEMORY_COPY_TO_SMARTCARD" = "y" ]; then
echo -e "\nChecking for USB Security dongle...\n"
enable_usb
if ! gpg --card-status >/dev/null 2>&1; then
local_whiptail_error "Can't access USB Security dongle; \nPlease remove and reinsert, then press Enter."