1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-29 09:58:32 +02:00

taskwarrior: minor script cleanup

This commit is contained in:
Robert Helgesson 2022-04-07 23:35:55 +02:00
parent 8a046f36eb
commit 47b3719f51
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -112,13 +112,9 @@ in {
else else
echo "include ${homeConf}" > "${userConf}" echo "include ${homeConf}" > "${userConf}"
fi fi
elif ! ${pkgs.gnugrep}/bin/grep -qF "include ${homeConf}" ${ elif ! grep -qF "include ${homeConf}" ${escapeShellArg userConf}; then
escapeShellArg userConf # Add include statement for Home Manager generated config.
}; then $DRY_RUN_CMD sed -i '1i include ${homeConf}' ${escapeShellArg userConf}
# Add include statement for home-manager generated config
$DRY_RUN_CMD ${pkgs.gnused}/bin/sed -i '1i include ${homeConf}' ${
escapeShellArg userConf
}
fi fi
''; '';
}; };