Reaktor plugins wiki-todo: fix flag injection
found by makefu
This commit is contained in:
parent
78ea2c5b1a
commit
877edfa122
|
@ -131,14 +131,14 @@ rec {
|
||||||
wiki-todo-add = buildSimpleReaktorPlugin "wiki-todo-add" {
|
wiki-todo-add = buildSimpleReaktorPlugin "wiki-todo-add" {
|
||||||
pattern = "^wiki-todo: (?P<args>.*)$$";
|
pattern = "^wiki-todo: (?P<args>.*)$$";
|
||||||
script = pkgs.writeDash "wiki-todo-add" ''
|
script = pkgs.writeDash "wiki-todo-add" ''
|
||||||
echo "$@" >> wiki-todo
|
echo "$*" >> wiki-todo
|
||||||
echo "added todo"
|
echo "added todo"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
wiki-todo-done = buildSimpleReaktorPlugin "wiki-todo-done" {
|
wiki-todo-done = buildSimpleReaktorPlugin "wiki-todo-done" {
|
||||||
pattern = "^wiki-todo-done: (?P<args>.*)$$";
|
pattern = "^wiki-todo-done: (?P<args>.*)$$";
|
||||||
script = pkgs.writeDash "wiki-todo-done" ''
|
script = pkgs.writeDash "wiki-todo-done" ''
|
||||||
${pkgs.gnugrep}/bin/grep -vFx "$@" wiki-todo > wiki-todo.tmp
|
${pkgs.gnugrep}/bin/grep -Fvxe "$*" wiki-todo > wiki-todo.tmp
|
||||||
${pkgs.coreutils}/bin/mv wiki-todo.tmp wiki-todo
|
${pkgs.coreutils}/bin/mv wiki-todo.tmp wiki-todo
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user