tessen

default description
git clone https://git.awy.one/tessen.git
Log | Files | Refs | README | LICENSE

commit 9d2854023597ef2fd9036d3a8f2e2d83470e5e3c
parent ba7469611efcd2d172944a2a6badb041f29c9d4e
Author: Ayush Agarwal <ayush@fastmail.in>
Date:   Fri, 17 Sep 2021 01:11:05 +0530

fix the parameter expansion to parse values

using '##*:' ended up doing a greedy match which also removes text after
the first ':' if another ':' is found in the value

Diffstat:
Mtessen | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tessen b/tessen @@ -55,7 +55,7 @@ get_pass_data() { for idx in "${passdata[@]:1}"; do if [[ "$idx" =~ $passdata_regex ]]; then key="${idx%%:*}" - val="${idx##*: }" + val="${idx#*: }" PASSDATA_ARR["$key"]="$val" else continue