[Rt-commit] r4497 - in rt/branches/3.4-RELEASE: bin
alexmv at bestpractical.com
alexmv at bestpractical.com
Sat Feb 4 18:34:47 EST 2006
Author: alexmv
Date: Sat Feb 4 18:34:45 2006
New Revision: 4497
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/bin/webmux.pl.in
Log:
r8936 at zoq-fot-pik: chmrr | 2006-02-04 18:24:38 -0500
* Only rmtree if we have something to rm; keeps rmtree from
complaining about 'Not root path(s) specified'
Modified: rt/branches/3.4-RELEASE/bin/webmux.pl.in
==============================================================================
--- rt/branches/3.4-RELEASE/bin/webmux.pl.in (original)
+++ rt/branches/3.4-RELEASE/bin/webmux.pl.in Sat Feb 4 18:34:45 2006
@@ -95,7 +95,8 @@
use File::Path qw( rmtree );
use File::Glob qw( bsd_glob );
- rmtree([ bsd_glob("$RT::MasonDataDir/obj/*") ], 0, 1);
+ my @files = bsd_glob("$RT::MasonDataDir/obj/*");
+ rmtree([ @files ], 0, 1) if @files;
}
sub handler {
More information about the Rt-commit
mailing list