From 35469851b36508b0923283e23ba87874376b10d1 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 9 Oct 2025 11:08:08 -0700 Subject: [PATCH] Fix find command to use OR when checking for multiple extensions. Fix sources extension to be plural. --- tasks/general/acct_mgmt/users.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index 1a672de..f875a4b 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -835,11 +835,12 @@ echo "*** Continuing with upgrade. ***" sudo sed -i "s/$OLD/$NEW/g" /etc/apt/sources.list - find /etc/apt/sources.list.d -name "*.list" -name "*.source" \ + find /etc/apt/sources.list.d/ \ + -name "*.list" -o -name "*.sources" \ -exec sudo sed -i "s/$OLD/$NEW/g" {} \; - sudo grep $OLD /etc/apt/sources.list /etc/apt/sources.list.d/* - sudo grep $NEW /etc/apt/sources.list /etc/apt/sources.list.d/* + sudo grep $OLD /etc/apt/sources.list /etc/apt/sources.list.d/*.{list,sources} + sudo grep $NEW /etc/apt/sources.list /etc/apt/sources.list.d/*.{list,sources} echo -en "\nDo the source files look correct? (y/N) " typeset -u confirm_correct