diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-13 17:41:42 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2018-01-14 22:41:08 +0000 |
commit | 81a42ed35e61de32d82ac0e8c406841d5f37d53f (patch) | |
tree | 207a7b62380c0417d0ee5600426be910fd8309e0 /drakclassic | |
parent | d1a2765a504a8e86ee4b99bcc03a4c05f026bdbb (diff) | |
download | drakiso-81a42ed35e61de32d82ac0e8c406841d5f37d53f.tar drakiso-81a42ed35e61de32d82ac0e8c406841d5f37d53f.tar.gz drakiso-81a42ed35e61de32d82ac0e8c406841d5f37d53f.tar.bz2 drakiso-81a42ed35e61de32d82ac0e8c406841d5f37d53f.tar.xz drakiso-81a42ed35e61de32d82ac0e8c406841d5f37d53f.zip |
Reduce perl_checker noise.
Diffstat (limited to 'drakclassic')
-rwxr-xr-x | drakclassic | 10 |
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); } } |