Verified Commit 63b36944 authored by Camil Staps's avatar Camil Staps
Browse files

minor fix

parent 481bf2c7
......@@ -8,7 +8,7 @@ cd "$CACHE_DIR"
while :; do
n="$(($(ls -l | wc -l)-1))"
if [ "$n" -gt "$CACHE_SIZE" ]; then
ls -1tu | tail -n "$((n-CACHE_SIZE))" | xargs -n1 rm -v
ls -1tu | tail -n "$((n-CACHE_SIZE))" | xargs -P$(nproc) -r rm -v
echo "$n / $CACHE_SIZE cache entries used"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment