summaryrefslogtreecommitdiffstats
path: root/drakclassic
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-04-29 14:21:43 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-05-23 18:31:00 +0100
commitb61a93e7c26aa55623e284bca8ac19510397e848 (patch)
tree0ced51c5363ce5fed165eeeeaf5073cb1bc1aa5d /drakclassic
parent4cfe467c9cb86e7604d2bad0082133282938f117 (diff)
downloaddrakiso-b61a93e7c26aa55623e284bca8ac19510397e848.tar
drakiso-b61a93e7c26aa55623e284bca8ac19510397e848.tar.gz
drakiso-b61a93e7c26aa55623e284bca8ac19510397e848.tar.bz2
drakiso-b61a93e7c26aa55623e284bca8ac19510397e848.tar.xz
drakiso-b61a93e7c26aa55623e284bca8ac19510397e848.zip
Simplify working directory layout.
Diffstat (limited to 'drakclassic')
-rwxr-xr-xdrakclassic6
1 files changed, 1 insertions, 5 deletions
diff --git a/drakclassic b/drakclassic
index f42a5b0..096459c 100755
--- a/drakclassic
+++ b/drakclassic
@@ -53,11 +53,7 @@ sub clean {
my $build_dir = $build->get_build_dir;
if (-e $build_dir) {
- run_('rm', '-rf', $build_dir);
- }
- my $chroot_dir = $build->get_chroot_dir;
- if (-e $chroot_dir) {
- run_as_root('rm', '-rf', $chroot_dir);
+ run_as_root('rm', '-rf', $build_dir);
}
}