diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-23 21:41:36 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-02-23 21:41:36 -0700 |
commit | 54167d8823c6c5665246adab314c06f1ee25b2b5 (patch) | |
tree | b76643379e6f41df899914d570d3d57da26e7a9b /bin/locmaint | |
parent | 2cf46f68ca5bbf16822dd6bf4e45d0cbbb083eb6 (diff) | |
download | dotfiles-54167d8823c6c5665246adab314c06f1ee25b2b5.tar.gz |
always call empty_dir_or_list on all three dirs
Diffstat (limited to 'bin/locmaint')
-rwxr-xr-x | bin/locmaint | 7 |
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(); |