From 36d7f244ff48325a35fae8ed9d2877d0ef91f603 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Apr 2025 22:45:04 +0200 Subject: fix(modules/taskwarrior/mkHook): Fix shellcheck issues --- modules/by-name/ta/taskwarrior/module.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/by-name/ta/taskwarrior/module.nix') diff --git a/modules/by-name/ta/taskwarrior/module.nix b/modules/by-name/ta/taskwarrior/module.nix index e4e264e6..354d3724 100644 --- a/modules/by-name/ta/taskwarrior/module.nix +++ b/modules/by-name/ta/taskwarrior/module.nix @@ -23,7 +23,7 @@ executable = pkgs.writeShellApplication { name = "add-hook-${builtins.baseNameOf path}"; - runtimeInputs = [pkgs.taskwarrior3 pkgs.coreutils] ++ deps; + runtimeInputs = [pkgs.taskwarrior3 pkgs.coreutils pkgs.gnugrep] ++ deps; inheritPath = false; text = # bash @@ -37,9 +37,9 @@ # TODO: We should probably be smarter with the debug detection <2025-04-04> if echo "$2" | grep --quite 'rc.debug.hooks='; then set -x - mkdir --parents "~/.cache/task" - exec >>"~/.cache/task/hook.log.$0" - exec 2>>"~/.cache/task/hook.log.$0" + mkdir --parents "$HOME/.cache/task" + exec >>"$HOME/.cache/task/hook.log.$1" + exec 2>>"$HOME/.cache/task/hook.log.$1" fi } @@ -56,7 +56,7 @@ # We don't change the task, thus immediately return the JSON echo "$new_task" - enable_hook_dbg + enable_hook_dbg "$@" addedCall "$new_task" "$old_task" exit 0 -- cgit 1.4.1