diff options
author | Ayush Agarwal <ayush@fastmail.in> | 2021-09-17 01:11:05 +0530 |
---|---|---|
committer | Ayush Agarwal <ayush@fastmail.in> | 2021-09-17 01:11:05 +0530 |
commit | 9d2854023597ef2fd9036d3a8f2e2d83470e5e3c (patch) | |
tree | ae95de1979074560d7eabc0616a116b8d9796f74 | |
parent | ba7469611efcd2d172944a2a6badb041f29c9d4e (diff) |
fix the parameter expansion to parse valuesv0.4.1
using '##*:' ended up doing a greedy match which also removes text after
the first ':' if another ':' is found in the value
-rwxr-xr-x | tessen | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |