mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-21 20:45:51 +03:00
Ensure paths are passed properly escaped into codesign command in mac-crafter
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
b046f500fc
commit
533b04baf9
1 changed files with 1 additions and 1 deletions
|
@ -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).")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue