make sure to always catch non-password entries

This commit is contained in:
Rasmus Steinke 2015-08-23 22:28:26 +02:00
parent 61e03813b9
commit b411e01304

View File

@ -98,6 +98,13 @@ ${line2}</span>"
done < <(PASSWORD_STORE_DIR="${root}" pass "${selected_password}" | tail -n+2 | grep -P '(: |:\t)' ) done < <(PASSWORD_STORE_DIR="${root}" pass "${selected_password}" | tail -n+2 | grep -P '(: |:\t)' )
stuff["pass"]=${password} stuff["pass"]=${password}
if [[ "$selected_password" == "[ Add Entry ]>" ]]; then
insertPass
elif [[ "$selected_password" == "[ Manage Database ]>" ]]; then
manageEntry
elif [[ "$selected_password" == "" ]]; then
exit
fi
if [[ $rofi_exit -eq 11 ]]; then if [[ $rofi_exit -eq 11 ]]; then
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file - echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -
exit exit
@ -120,13 +127,6 @@ ${line2}</span>"
elif [[ $rofi_exit -eq 18 || $rofi_exit -eq 19 ]]; then elif [[ $rofi_exit -eq 18 || $rofi_exit -eq 19 ]]; then
mainMenu mainMenu
fi fi
if [[ "$selected_password" == "[ Add Entry ]>" ]]; then
insertPass
elif [[ "$selected_password" == "[ Manage Database ]>" ]]; then
manageEntry
elif [[ "$selected_password" == "" ]]; then
exit
fi
if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file - echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -