mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
taskwarrior: minor script cleanup
This commit is contained in:
@@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user