aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-06-11 21:07:09 -0500
committerJacob Pipkin <j@dawnrazor.net>2012-06-11 21:07:09 -0500
commitd3db332c7d9bab3be5cbb04e1d9283627048ee05 (patch)
treed89a8497ea89fcec3ff985d3532310aacbd92294
parentf7f233674e93fff3b37b8a058a474596f3b1af13 (diff)
downloadsbotools2-d3db332c7d9bab3be5cbb04e1d9283627048ee05.tar.xz
code reduction
-rwxr-xr-xsboclean14
1 files changed, 2 insertions, 12 deletions
diff --git a/sboclean b/sboclean
index e31f3ea..0b503bc 100755
--- a/sboclean
+++ b/sboclean
@@ -62,17 +62,7 @@ sub remove_stuff {
}
}
-sub clean_distfiles {
- remove_stuff ($config{SBO_HOME} .'/distfiles');
- return;
-}
-
-sub clean_workdirs {
- remove_stuff ('/tmp/SBo');
- return;
-}
-
-clean_distfiles () if $clean_dist eq 'TRUE';
-clean_workdirs () if $clean_work eq 'TRUE';
+remove_stuff ($config{SBO_HOME} . '/distfiles') if $clean_dist eq 'TRUE';
+remove_stuff ('/tmp/SBo') if $clean_work eq 'TRUE';
exit 0;