summaryrefslogtreecommitdiffstats
path: root/drakclassic
diff options
context:
space:
mode:
Diffstat (limited to 'drakclassic')
-rwxr-xr-xdrakclassic10
1 files changed, 6 insertions, 4 deletions
diff --git a/drakclassic b/drakclassic
index a0b9c0a..969d061 100755
--- a/drakclassic
+++ b/drakclassic
@@ -52,11 +52,13 @@ $::force = 0;
sub clean {
my ($build) = @_;
- if (-e $build->get_build_dir) {
- run_('rm', '-rf', $build->get_build_dir);
+ my $build_dir = $build->get_build_dir;
+ if (-e $build_dir) {
+ run_('rm', '-rf', $build_dir);
}
- if (-e $build->get_chroot_dir) {
- run_as_root('rm', '-rf', $build->get_chroot_dir);
+ my $chroot_dir = $build->get_chroot_dir;
+ if (-e $chroot_dir) {
+ run_as_root('rm', '-rf', $chroot_dir);
}
}