stockholm/krebs/5pkgs/simple/cgit-clear-cache.nix

7 lines
197 B
Nix
Raw Normal View History

2021-10-12 17:36:09 +00:00
{ cache-root ? "/tmp/cgit", findutils, stockholm, writeDashBin }:
2018-08-28 18:58:23 +00:00
writeDashBin "cgit-clear-cache" ''
set -efu
2021-10-12 17:36:09 +00:00
${findutils}/bin/find ${stockholm.lib.shell.escape cache-root} -type f -delete
2018-08-28 18:58:23 +00:00
''