Ian Jauslin
summaryrefslogtreecommitdiff
path: root/bin/BBlog
diff options
context:
space:
mode:
Diffstat (limited to 'bin/BBlog')
-rwxr-xr-xbin/BBlog7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/BBlog b/bin/BBlog
index 0c8b525..d646cd9 100755
--- a/bin/BBlog
+++ b/bin/BBlog
@@ -1,6 +1,6 @@
#!/bin/bash
-## Copyright Ian Jauslin 2015-2022
+## Copyright Ian Jauslin 2015-2023
##
## 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.5
+version=2.2
function print_config {
echo "engine: $engine"
@@ -222,7 +222,8 @@ function replace_format {
# apply filter
if [ -n "$filter" ]; then
- sed_cmd=$(eval "echo \$filter_$filter")
+ # replace '%' inside filter text
+ sed_cmd=$(replace_format $(eval "echo \$filter_$filter"))
replacement=$(eval "echo \$$field" | sed -r "$sed_cmd" )
else
replacement=$(eval "echo \$$field")