Skip to content

Commit

Permalink
Do not take current dir pth for filemanager for recursive codesign ex…
Browse files Browse the repository at this point in the history
…ecutable path check

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Nov 21, 2024
1 parent 3378126 commit 1198839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/osx/mac-crafter/Sources/Utils/Codesign.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1198839

Please sign in to comment.