summaryrefslogtreecommitdiff
path: root/bin/locmaint
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-23 21:41:36 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-23 21:41:36 -0700
commit54167d8823c6c5665246adab314c06f1ee25b2b5 (patch)
treeb76643379e6f41df899914d570d3d57da26e7a9b /bin/locmaint
parent2cf46f68ca5bbf16822dd6bf4e45d0cbbb083eb6 (diff)
downloaddotfiles-54167d8823c6c5665246adab314c06f1ee25b2b5.tar.gz
always call empty_dir_or_list on all three dirs
Diffstat (limited to 'bin/locmaint')
-rwxr-xr-xbin/locmaint7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/locmaint b/bin/locmaint
index efb3efb8..6976d21f 100755
--- a/bin/locmaint
+++ b/bin/locmaint
@@ -207,9 +207,10 @@ sub do_homedir {
# (can't live in ~/src as src-register-all will complain)
#
# local/pub: files to be temporarily shared over the LAN
- unless (empty_dir_or_list("local/big")
- && empty_dir_or_list("local/tmp")
- && empty_dir_or_list("local/pub")) {
+ my $empty = 1;
+ $empty = empty_dir_or_list($_) && $empty
+ for qw(local/big local/tmp local/pub);
+ unless ($empty) {
say_spaced_bullet
("Consider cleaning up/annexing files in dir(s) listed above.");
get_ack();