From 0cceff08b7a5b3904d7208262e1b4f889151ecad Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Thu, 22 Feb 2024 20:33:05 -0800 Subject: [PATCH] Try with slash --- ReleaseTooling/Sources/Utils/FileManager+Utils.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReleaseTooling/Sources/Utils/FileManager+Utils.swift b/ReleaseTooling/Sources/Utils/FileManager+Utils.swift index 1a657fd5155..df9edb050df 100644 --- a/ReleaseTooling/Sources/Utils/FileManager+Utils.swift +++ b/ReleaseTooling/Sources/Utils/FileManager+Utils.swift @@ -193,7 +193,8 @@ public extension FileManager { // The only thing of interest is the path extension being ".bundle", but not a privacy // bundle. if fileURL.pathExtension == "bundle", - !fileURL.lastPathComponent.hasSuffix("_Privacy.bundle") { + !fileURL.lastPathComponent.hasSuffix("_Privacy.bundle"), + !fileURL.lastPathComponent.hasSuffix("_Privacy.bundle/") { matches.append(fileURL) } case .headers: