2021-10-12 19:36:09 +02:00
|
|
|
{ cache-root ? "/tmp/cgit", findutils, stockholm, writeDashBin }:
|
2018-08-28 20:58:23 +02:00
|
|
|
|
|
|
|
writeDashBin "cgit-clear-cache" ''
|
|
|
|
set -efu
|
2021-10-12 19:36:09 +02:00
|
|
|
${findutils}/bin/find ${stockholm.lib.shell.escape cache-root} -type f -delete
|
2018-08-28 20:58:23 +02:00
|
|
|
''
|