diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-02-27 16:49:09 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-02-27 16:50:12 -0700 |
commit | 085a3b23668f578e070f3298dbbba70c7e0474fb (patch) | |
tree | 578e978c2663d7fad0cbd8d09544568d7672cc27 /bin | |
parent | 9c6a4e779742dcbc80969dea53ec651bfa56bd63 (diff) | |
download | dotfiles-085a3b23668f578e070f3298dbbba70c7e0474fb.tar.gz |
store mailq(1) executable path for comparing to dpkg-query(1) output
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/locmaint | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/locmaint b/bin/locmaint index 3bfa2c7a..b3880c6d 100755 --- a/bin/locmaint +++ b/bin/locmaint @@ -569,7 +569,8 @@ sub do_sysmaint { sub { system_pty_capture(as_root("apt-get autoclean")) } ); - if (-x executable_find "mailq") { + my $mailq = executable_find "mailq"; + if (-x $mailq) { chomp(my $owner = `dpkg-query -S $mailq`); $owner =~ s/: $mailq\z//; # this check is only for systems running postfix |