summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-05-16 17:50:10 +0200
committerUrban Müller2024-05-16 17:50:10 +0200
commit83d862e2b688f1de9c56231db963f6594a48c37a (patch)
treed8f334b5952a5ffbcbf4f0878169782f6daa0275
parent05a1443fd3364b1804918267edfa1a8741bcbf19 (diff)
downloaditools-83d862e2b688f1de9c56231db963f6594a48c37a.tar.gz
itools-83d862e2b688f1de9c56231db963f6594a48c37a.tar.bz2
itools-83d862e2b688f1de9c56231db963f6594a48c37a.zip
reduce quoting hell
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 8001469..4d762f4 100644
--- a/it_url.class
+++ b/it_url.class
@@ -703,7 +703,7 @@ static function get_cache($p = array())
{
it::file_put($p['cachedir'] . "/cleaned", ""); # touch could have permission problems
$maxagemin = intval($p['maxage']/60);
- exec("nohup bash -c 'cd {$p['cachedir']} && for i in ??; do sleep 20; ionice -c 3 find \"\$i\" -mmin +\"$maxagemin\" -type f -delete; done' </dev/null >/dev/null 2>&1 &");
+ exec("nohup bash -c 'cd {$p['cachedir']} && for i in [0-9][0-9]; do sleep 20; ionice -c 3 find \$i -mmin +$maxagemin -type f -delete; done' </dev/null >/dev/null 2>&1 &");
}
if (EDC('getcachelog'))