diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-10-06 21:57:54 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-10-06 21:57:54 +0200 |
commit | d1a435964bb6f4eccf86e6c46fda5b978648237a (patch) | |
tree | b996d7cf0ae3a45796258920df594af19fa915f3 /.local/bin/vlt | |
parent | 50baab75b4a500fdec2a667b6c920c4a8285c1e1 (diff) |
vlt: Fix variable name when editing
Diffstat (limited to '.local/bin/vlt')
-rwxr-xr-x | .local/bin/vlt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/vlt b/.local/bin/vlt index 7e48c8d..397f191 100755 --- a/.local/bin/vlt +++ b/.local/bin/vlt @@ -246,7 +246,7 @@ edit() readonly data="`enchive extract <"$VAULT"`" c="`xecho "$data" | jq -r 'keys | .[]' | osel`" - o="`xecho "$data" | jq -r --arg c "$c" '.[$c] | keys | .[]' | osel`" + n="`xecho "$data" | jq -r --arg c "$c" '.[$c] | keys | .[]' | osel`" if [ "$VAULT_2FA" = "$c" ] then @@ -256,7 +256,7 @@ edit() xecho "$data" \ | jq --arg c "$c" \ - --arg o "$o" \ + --arg n "$n" \ --arg s "$k" \ --arg d "$d" \ --arg p "$s" \ |