From: Tom Hughes Date: Wed, 29 Oct 2014 15:13:23 +0000 (+0000) Subject: Reorder find arguments to avoid warning X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/87a5f38102d7c70052e404469f79cfea608c1363?hp=1c8d0b84173a0051045c9b08e6bd4fe63c5e6307 Reorder find arguments to avoid warning --- diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index 8e42c4d44..bb6769cb4 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -19,7 +19,7 @@ my $tempfile = tmpnam(); if (df($tiledir)->{per} > 90) { - system("find", $tiledir, "-name", "lost+found", "-prune", "-o", "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+21", "-fprintf", $tempfile, "%A@ %p\n"); + system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+21", "-fprintf", $tempfile, "%A@ %p\n"); open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";