diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-10 09:03:20 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-12 08:44:42 +0000 |
commit | ff30da3ebb107421372e2a1a6d37f7c189667f2b (patch) | |
tree | 7dcb10f555e74768f55029d644d16e636abb5420 /drakclassic | |
parent | 98ac027245772b49c24b1bbe35b0f33e6551c3e8 (diff) | |
download | drakiso-ff30da3ebb107421372e2a1a6d37f7c189667f2b.tar drakiso-ff30da3ebb107421372e2a1a6d37f7c189667f2b.tar.gz drakiso-ff30da3ebb107421372e2a1a6d37f7c189667f2b.tar.bz2 drakiso-ff30da3ebb107421372e2a1a6d37f7c189667f2b.tar.xz drakiso-ff30da3ebb107421372e2a1a6d37f7c189667f2b.zip |
Simplify run_() helper function and minimise direct calls to system().
Diffstat (limited to 'drakclassic')
-rwxr-xr-x | drakclassic | 4 |
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); } } |