summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-09-01 22:15:51 +0200
committerlassulus <lassulus@lassul.us>2017-09-01 22:24:28 +0200
commit877edfa122837c3025ac9fc74895be5cb92d3433 (patch)
tree9af8e80e2e2b1d375363792bbe8460dcc1891178 /krebs/5pkgs/simple
parent78ea2c5b1a8e483edecff58b5cfe06425a2ba7b9 (diff)
Reaktor plugins wiki-todo: fix flag injection
found by makefu
Diffstat (limited to 'krebs/5pkgs/simple')
-rw-r--r--krebs/5pkgs/simple/Reaktor/plugins.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/5pkgs/simple/Reaktor/plugins.nix b/krebs/5pkgs/simple/Reaktor/plugins.nix
index d4fa5b1cf..eb591b274 100644
--- a/krebs/5pkgs/simple/Reaktor/plugins.nix
+++ b/krebs/5pkgs/simple/Reaktor/plugins.nix
@@ -131,14 +131,14 @@ rec {
wiki-todo-add = buildSimpleReaktorPlugin "wiki-todo-add" {
pattern = "^wiki-todo: (?P<args>.*)$$";
script = pkgs.writeDash "wiki-todo-add" ''
- echo "$@" >> wiki-todo
+ echo "$*" >> wiki-todo
echo "added todo"
'';
};
wiki-todo-done = buildSimpleReaktorPlugin "wiki-todo-done" {
pattern = "^wiki-todo-done: (?P<args>.*)$$";
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
'';
};