Skip to content

Commit

Permalink
Merge pull request #7520 from nextcloud/backport/7519/stable-3.14
Browse files Browse the repository at this point in the history
[stable-3.14] Ensure paths are passed properly escaped into codesign command in mac-crafter
  • Loading branch information
claucambra authored Nov 20, 2024
2 parents 8d0a614 + 3050c24 commit d594cde
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 @@ -36,7 +36,7 @@ func codesign(
options: String = "--timestamp --force --preserve-metadata=entitlements --verbose=4 --options runtime --deep"
) throws {
print("Code-signing \(path)...")
let command = "codesign -s \"\(identity)\" \(options) \(path)"
let command = "codesign -s \"\(identity)\" \(options) \"\(path)\""
guard shell(command) == 0 else {
throw CodeSigningError.failedToCodeSign("Failed to code-sign \(path).")
}
Expand Down

0 comments on commit d594cde

Please sign in to comment.