aboutsummaryrefslogtreecommitdiff
path: root/sboclean
diff options
context:
space:
mode:
Diffstat (limited to 'sboclean')
-rwxr-xr-xsboclean4
1 files changed, 2 insertions, 2 deletions
diff --git a/sboclean b/sboclean
index 851ab84..2f51f35 100755
--- a/sboclean
+++ b/sboclean
@@ -57,7 +57,7 @@ usage_error("You must specify at least one of -d or -w.") unless
($clean_dist || $clean_work);
sub rm_full {
- @_ == 1 or script_error('rm_full requires an argument.');
+ script_error('rm_full requires an argument.') unless @_ == 1;
my $full = shift;
if ($interactive) {
print "Remove $full? [n] ";
@@ -69,7 +69,7 @@ sub rm_full {
}
sub remove_stuff {
- @_ == 1 or script_error 'remove_stuff requires an argument.';
+ script_error 'remove_stuff requires an argument.' unless @_ == 1;
my $dir = shift;
-d $dir or say 'Nothing to do.' and return 0;
opendir(my $dh, $dir);