projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c8d0b8
)
Reorder find arguments to avoid warning
author
Tom Hughes
<tom@compton.nu>
Wed, 29 Oct 2014 15:13:23 +0000
(15:13 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 29 Oct 2014 15:13:23 +0000
(15:13 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb
patch
|
blob
|
history
diff --git
a/cookbooks/tile/templates/default/cleanup-tiles.erb
b/cookbooks/tile/templates/default/cleanup-tiles.erb
index 8e42c4d441c84106f27faebd96a94d094d4cdee7..bb6769cb4654ab331512464333e5e130025a8c53 100644
(file)
--- 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: $!";