Merge pull request #3 from jcmuller/allow-shell-unfriendly-chars

Quote password being sent to op
This commit is contained in:
Felipe Martin Garcia 2021-12-26 17:39:23 +01:00 committed by GitHub
commit 1580ac9826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ CMD_PASSWORD_PROMPT = (
CMD_ITEM_SELECT = "echo -e '{items}' | rofi -dmenu -p 'Select login'"
CMD_LIST_PROMPT = "echo {items} | rofi -dmenu"
CMD_OP_LOGIN = "echo -n {password} | op signin {subdomain} --output=raw"
CMD_OP_LOGIN = "echo -n '{password}' | op signin {subdomain} --output=raw"
CMD_OP_LIST_ITEMS = "op list items --categories Login --session={session_id}"
CMD_OP_GET_ITEM = "op get item {uuid} --session={session_id}"
CMD_OP_GET_TOTP = "op get totp {uuid} --session={session_id}"