stockholm/krebs/5pkgs/simple/cgit-clear-cache.nix
2018-08-28 22:01:31 +02:00

9 lines
202 B
Nix

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