Skip to content

Commit

Permalink
Merge pull request #7519 from nextcloud/bugfix/mac-crafter-codesign-p…
Browse files Browse the repository at this point in the history
…aths-with-spaces

Ensure paths are passed properly escaped into codesign command in mac-crafter
  • Loading branch information
claucambra authored Nov 20, 2024
2 parents b046f50 + 533b04b commit 8797243
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 8797243

Please sign in to comment.