diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-06-11 23:05:21 -0500 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-06-11 23:05:21 -0500 |
commit | 8dfe0461d5e4ae3ef31c0a01a9cc04e7334a458c (patch) | |
tree | d9c78b0077beb355f19075614759074b1ecc09b2 /sboclean | |
parent | 3fe7112f8c96478a55eeebe0d63665c1435c5dda (diff) | |
download | sbotools2-8dfe0461d5e4ae3ef31c0a01a9cc04e7334a458c.tar.xz |
bunch more code reductions and stuff
Diffstat (limited to 'sboclean')
-rwxr-xr-x | sboclean | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,7 +46,7 @@ if ($clean_dist eq 'FALSE' && $clean_work eq 'FALSE') { } sub remove_stuff { - script_error ('remove_stuff requires an argument') unless exists $_[0]; + exists $_[0] or script_error ('remove_stuff requires an argument'); print "Nothing to do.\n" and return 1 unless -d $_[0]; my $dir = shift; opendir (my $dh, $dir); @@ -58,7 +58,7 @@ sub remove_stuff { next FIRST unless <STDIN> =~ /^[Yy]/; } unlink $full if -f $full; - remove_tree $full if -d $full; + remove_tree ($full) if -d $full; } } |