Update to v2.2.1:
Fix: Missing quotes in filter interpreter.
This commit is contained in:
parent
70bba87946
commit
c6e9cb3af4
@ -1,3 +1,8 @@
|
|||||||
|
2.2.1:
|
||||||
|
|
||||||
|
* Fix: Missing quotes in filter interpreter.
|
||||||
|
|
||||||
|
|
||||||
2.2:
|
2.2:
|
||||||
|
|
||||||
* New: Allow for the value of other entries to be in the 'sed' command of a
|
* New: Allow for the value of other entries to be in the 'sed' command of a
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
enginedir=/usr/share/BBlog/engines
|
enginedir=/usr/share/BBlog/engines
|
||||||
|
|
||||||
# version
|
# version
|
||||||
version=2.2
|
version=2.2.1
|
||||||
|
|
||||||
function print_config {
|
function print_config {
|
||||||
echo "engine: $engine"
|
echo "engine: $engine"
|
||||||
@ -223,7 +223,7 @@ function replace_format {
|
|||||||
# apply filter
|
# apply filter
|
||||||
if [ -n "$filter" ]; then
|
if [ -n "$filter" ]; then
|
||||||
# replace '%' inside filter text
|
# replace '%' inside filter text
|
||||||
sed_cmd=$(replace_format $(eval "echo \$filter_$filter"))
|
sed_cmd=$(replace_format "$(eval echo \$filter_$filter)")
|
||||||
replacement=$(eval "echo \$$field" | sed -r "$sed_cmd" )
|
replacement=$(eval "echo \$$field" | sed -r "$sed_cmd" )
|
||||||
else
|
else
|
||||||
replacement=$(eval "echo \$$field")
|
replacement=$(eval "echo \$$field")
|
||||||
|
Loading…
Reference in New Issue
Block a user