summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/cgit-clear-cache.nix
blob: 31a2eccb378e6d5292e4e70f1fa362b7b4e71144 (plain)
1
2
3
4
5
6
{ cache-root ? "/tmp/cgit", findutils, stockholm, writeDashBin }:

writeDashBin "cgit-clear-cache" ''
  set -efu
  ${findutils}/bin/find ${stockholm.lib.shell.escape cache-root} -type f -delete
''