Remove unintented paranthesis

This commit is contained in:
alex-nitrokey 2020-06-24 16:16:03 +02:00
parent 53b67d27a4
commit 407778eb9a
No known key found for this signature in database
GPG Key ID: A8853020E8EE6FBA
2 changed files with 6 additions and 6 deletions

View File

@ -199,7 +199,7 @@ while true; do
enable_usb
if ! libremkey_hotp_verification info ; then
whiptail $CONFIG_WARNING_BG_COLOR --clear --title 'WARNING: Please Insert Your
$(CONFIG_HOTPKEY_BRANDING)' --msgbox "Your $(CONFIG_HOTPKEY_BRANDING) was not detected.\n\nPlease insert your $(CONFIG_HOTPKEY_BRANDING)" 30 90
$CONFIG_HOTPKEY_BRANDING' --msgbox "Your $CONFIG_HOTPKEY_BRANDING was not detected.\n\nPlease insert your $CONFIG_HOTPKEY_BRANDING" 30 90
fi
# Don't output HOTP codes to screen, so as to make replay attacks harder
libremkey_hotp_verification check $HOTP
@ -212,7 +212,7 @@ while true; do
MAIN_MENU_BG_COLOR=$CONFIG_ERROR_BG_COLOR
;;
* )
HOTP="Error checking code, Insert $(CONFIG_HOTPKEY_BRANDING) and retry"
HOTP="Error checking code, Insert $CONFIG_HOTPKEY_BRANDING and retry"
MAIN_MENU_BG_COLOR=$CONFIG_WARNING_BG_COLOR
;;
esac

View File

@ -54,19 +54,19 @@ counter_value=1
enable_usb
if ! libremkey_hotp_verification info ; then
echo "Insert your $(CONFIG_HOTPKEY_BRANDING) and press Enter to configure it"
echo "Insert your $CONFIG_HOTPKEY_BRANDING and press Enter to configure it"
read
if ! libremkey_hotp_verification info ; then
# don't leak key on failure
shred -n 10 -z -u "$HOTP_SECRET" 2> /dev/null
die "Unable to find $(CONFIG_HOTPKEY_BRANDING)"
die "Unable to find $CONFIG_HOTPKEY_BRANDING"
fi
fi
# TODO find out branding now and set variable
echo -e ""
read -s -p "Enter your $(CONFIG_HOTPKEY_BRANDING) Admin PIN: " admin_pin
read -s -p "Enter your $CONFIG_HOTPKEY_BRANDING Admin PIN: " admin_pin
echo -e "\n"
libremkey_hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value
@ -102,7 +102,7 @@ echo $counter_value > $HOTP_COUNTER \
#|| die "Unable to create hotp counter file"
mount -o remount,ro /boot
echo -e "\n$(CONFIG_HOTPKEY_BRANDING) initialized successfully. Press Enter to continue."
echo -e "\n$CONFIG_HOTPKEY_BRANDING initialized successfully. Press Enter to continue."
read
exit 0