Ian Jauslin
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorIan Jauslin <ian@jauslin.org>2022-09-09 16:11:42 -0400
committerIan Jauslin <ian@jauslin.org>2022-09-09 16:11:42 -0400
commitaacbf51475e48941e6323b641ffb86600809738f (patch)
tree2e7c4870dcbb34ed4d0a8b6561cf60d5257a4fce /bin
parent2136ba3f69da0efe0eb2c8c960fc15d02331e358 (diff)
Update to v2.1.5:v2.1.5
Fixed: Properly escape entries with a '%'
Diffstat (limited to 'bin')
-rwxr-xr-xbin/BBlog11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/BBlog b/bin/BBlog
index 9d63581..0c8b525 100755
--- a/bin/BBlog
+++ b/bin/BBlog
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright Ian Jauslin 2015-2019
+## Copyright Ian Jauslin 2015-2022
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
enginedir=/usr/share/BBlog/engines
# version
-version=2.1.4
+version=2.1.5
function print_config {
echo "engine: $engine"
@@ -235,12 +235,13 @@ function replace_format {
out="${out//\%$command\%/$replacement}"
done
- # un-escape '%' in replacement
- out="${out//::iansays:percent::/\%}"
-
# finish replacing newlines
out="${out//\\n/%}"
out=$(echo "$out" | tr "%" "\n")
+
+ # un-escape '%' in replacement
+ out="${out//::iansays:percent::/\%}"
+
echo "$out"
}