summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/cgit-clear-cache.nix
blob: 28402c39c04e2e4830d2e49dc3f10689c1ff4565 (plain)
1
2
3
4
5
6
7
8
with import <stockholm/lib>;

{ cache-root ? "/tmp/cgit", findutils, writeDashBin }:

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