Skip to content

Commit

Permalink
Use .password only when not null and not empty (#11)
Browse files Browse the repository at this point in the history
Resolves #10
  • Loading branch information
sherrman authored and yardnsm committed Feb 8, 2019
1 parent c91a217 commit 5331305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/main.sh
Expand Up @@ -97,7 +97,7 @@ get_op_item_password() {

local -r JQ_FILTER="
.details
| if .password then
| if .password and .password != \"\" then
.password
else
.fields[]
Expand Down

0 comments on commit 5331305

Please sign in to comment.