make sure to always catch non-password entries
This commit is contained in:
parent
61e03813b9
commit
b411e01304
14
rofi-pass
14
rofi-pass
@ -98,6 +98,13 @@ ${line2}</span>"
|
||||
done < <(PASSWORD_STORE_DIR="${root}" pass "${selected_password}" | tail -n+2 | grep -P '(: |:\t)' )
|
||||
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
|
||||
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -
|
||||
exit
|
||||
@ -120,13 +127,6 @@ ${line2}</span>"
|
||||
elif [[ $rofi_exit -eq 18 || $rofi_exit -eq 19 ]]; then
|
||||
mainMenu
|
||||
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
|
||||
echo -n "${stuff[${USERNAME_field}]}" | xdotool type --clearmodifiers --file -
|
||||
|
Loading…
x
Reference in New Issue
Block a user