summaryrefslogtreecommitdiff
path: root/bin/locmaint
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-02-27 15:32:01 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-02-27 15:32:58 -0700
commit26420cbb7572b07becbe24ef0f27c91aa088850e (patch)
treec2cc53e37165bfbeb7f363638acb6ffdcf22e2e1 /bin/locmaint
parent1017c62a2d4b1761807c75f3d1134516389d897d (diff)
downloaddotfiles-26420cbb7572b07becbe24ef0f27c91aa088850e.tar.gz
locmaint --sys: check that aptitude is on PATH
Diffstat (limited to 'bin/locmaint')
-rwxr-xr-xbin/locmaint3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/locmaint b/bin/locmaint
index 98aa980c..7c7669d3 100755
--- a/bin/locmaint
+++ b/bin/locmaint
@@ -76,7 +76,7 @@ use Local::Interactive qw(interactive_ensure_subroutine
);
use Local::MrRepo;
use Local::ScriptStatus;
-use Local::Util qw(as_root);
+use Local::Util qw(as_root executable_find);
use Scalar::Util qw(looks_like_number);
use Sys::Hostname;
@@ -447,6 +447,7 @@ sub do_workstation_duplicity {
sub do_sysmaint {
return unless $can_root;
+ executable_find "aptitude";
# could also check uptime here, as old sysmaint did when run on
# athena -- idea was that if uptime was unexpectedly low then I