From 47b3719f51b020729de0b8f26a7606fb401b5de9 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 7 Apr 2022 23:35:55 +0200 Subject: [PATCH] taskwarrior: minor script cleanup --- modules/programs/taskwarrior.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/programs/taskwarrior.nix b/modules/programs/taskwarrior.nix index 4697b9c1..3eb0013e 100644 --- a/modules/programs/taskwarrior.nix +++ b/modules/programs/taskwarrior.nix @@ -112,13 +112,9 @@ in { else echo "include ${homeConf}" > "${userConf}" fi - elif ! ${pkgs.gnugrep}/bin/grep -qF "include ${homeConf}" ${ - escapeShellArg userConf - }; then - # Add include statement for home-manager generated config - $DRY_RUN_CMD ${pkgs.gnused}/bin/sed -i '1i include ${homeConf}' ${ - escapeShellArg userConf - } + elif ! grep -qF "include ${homeConf}" ${escapeShellArg userConf}; then + # Add include statement for Home Manager generated config. + $DRY_RUN_CMD sed -i '1i include ${homeConf}' ${escapeShellArg userConf} fi ''; };