summaryrefslogtreecommitdiffstats
path: root/drakclassic
diff options
context:
space:
mode:
Diffstat (limited to 'drakclassic')
-rwxr-xr-xdrakclassic4
1 files changed, 2 insertions, 2 deletions
diff --git a/drakclassic b/drakclassic
index c81c28d..839b997 100755
--- a/drakclassic
+++ b/drakclassic
@@ -53,10 +53,10 @@ sub clean {
my ($build) = @_;
if (-e $build->get_build_dir) {
- system('rm -rf ' . $build->get_build_dir);
+ run_('rm', '-rf', $build->get_build_dir);
}
if (-e $build->get_chroot_dir) {
- system('sudo rm -rf ' . $build->get_chroot_dir);
+ run_as_root('rm', '-rf', $build->get_chroot_dir);
}
}