summaryrefslogtreecommitdiffstats
path: root/scripts/clear-templates.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clear-templates.pl')
-rwxr-xr-xscripts/clear-templates.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/clear-templates.pl b/scripts/clear-templates.pl
index 9deb2e47d..cab854abb 100755
--- a/scripts/clear-templates.pl
+++ b/scripts/clear-templates.pl
@@ -12,7 +12,6 @@ use warnings;
use lib qw(. lib local/lib/perl5);
-
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Install::Filesystem qw(fix_dir_permissions);
@@ -24,17 +23,16 @@ $| = 1;
# rename the current directory and create a new empty one
# the templates will lazy-compile on demand
-my $path = bz_locations()->{'template_cache'};
+my $path = bz_locations()->{'template_cache'};
my $delete_path = "$path.deleteme";
print "clearing $path\n";
rmtree("$delete_path") if -e "$delete_path";
rename($path, $delete_path)
- or die "renaming '$path' to '$delete_path' failed: $!\n";
+ or die "renaming '$path' to '$delete_path' failed: $!\n";
-mkpath($path)
- or die "creating '$path' failed: $!\n";
+mkpath($path) or die "creating '$path' failed: $!\n";
fix_dir_permissions($path);
# delete the temp directory (it's ok if this fails)