9 lines
202 B
Nix
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
|
||
|
''
|