aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyush Agarwal <ayush@fastmail.in>2021-09-17 01:11:05 +0530
committerAyush Agarwal <ayush@fastmail.in>2021-09-17 01:11:05 +0530
commit9d2854023597ef2fd9036d3a8f2e2d83470e5e3c (patch)
treeae95de1979074560d7eabc0616a116b8d9796f74
parentba7469611efcd2d172944a2a6badb041f29c9d4e (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-xtessen2
1 files changed, 1 insertions, 1 deletions
diff --git a/tessen b/tessen
index 6281bd6..2a4f772 100755
--- 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