From d1a435964bb6f4eccf86e6c46fda5b978648237a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 6 Oct 2023 21:57:54 +0200 Subject: vlt: Fix variable name when editing --- .local/bin/vlt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local') 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" \ -- cgit v1.2.3