From 119883965a61be67fddb75ad0ca4bc42c8e521af Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Thu, 21 Nov 2024 23:08:38 +0800 Subject: [PATCH] Do not take current dir pth for filemanager for recursive codesign executable path check Signed-off-by: Claudio Cambra --- admin/osx/mac-crafter/Sources/Utils/Codesign.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift index 426d3ce05..cbbdf0eb3 100644 --- a/admin/osx/mac-crafter/Sources/Utils/Codesign.swift +++ b/admin/osx/mac-crafter/Sources/Utils/Codesign.swift @@ -70,7 +70,7 @@ func recursivelyCodesign( } for case let enumeratedItem as String in pathEnumerator { - let isExecutableFile = try isExecutable(fm.currentDirectoryPath + "/" + path + "/" + enumeratedItem) + let isExecutableFile = try isExecutable(path + "/" + enumeratedItem) guard isLibrary(enumeratedItem) || isAppExtension(enumeratedItem) || isExecutableFile else { continue }