diff options
author | Remi Collet <remi@remirepo.net> | 2019-01-17 10:07:29 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-01-17 10:07:29 +0100 |
commit | d40bd182b73fb694cf92d36bd8fec9e4296744bf (patch) | |
tree | e65f792932011a2c50075e9201e517285546ac68 /cleanoldmeta | |
parent | 5d8da9e8dfaa4d88f128934461d639687da26d57 (diff) |
EL8 stuff
Diffstat (limited to 'cleanoldmeta')
-rwxr-xr-x | cleanoldmeta | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cleanoldmeta b/cleanoldmeta index 21714a9..70c3710 100755 --- a/cleanoldmeta +++ b/cleanoldmeta @@ -22,12 +22,11 @@ function clean ($path) { } foreach ($tab as $n => $files) { if (count($tab[$n]) > KEEP) { - echo " $n\n"; krsort($tab[$n]); while (count($tab[$n]) > KEEP) { $f = array_pop($tab[$n]); if (unlink("$path/$f")) { - echo " $f\n"; + echo " $f\n"; } } } |