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

9 lines
202 B
Nix
Raw Normal View History

2018-08-28 18:58:23 +00:00
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
''