stockholm/krebs/5pkgs/simple/cgit-clear-cache.nix
2021-10-12 20:53:45 +02:00

7 lines
197 B
Nix

{ 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
''