From 1e4f9c9f269c0023447fe9f7be1678c639b578cb Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 20 Jan 2023 11:01:02 -0500 Subject: [PATCH] use newer find syntax to allow the exec to work inside a quoted string --- setup/so-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 416656bc2..d804bef15 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -1943,7 +1943,7 @@ securityonion_repo() { # if the package is updated when the update_packages function is called logCmd "yum -v -y update centos-release" info "Backing up the .repo files that were added by the centos-release package." - logCmd "find /etc/yum.repos.d/ -type f -not -name 'securityonion*repo' -exec mv -bvf {} /root/oldrepos/ \\;" + logCmd "find /etc/yum.repos.d/ -type f -not -name 'securityonion*repo' -exec mv -bvf {} /root/oldrepos/ +" logCmd "yum repolist all" fi }