Skip to content

Commit 6014bef

Browse files
committed
dont use shell
1 parent 3c369e4 commit 6014bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Coder-Desktop/Coder-DesktopHelper/main.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class HelperToolDelegate: NSObject, NSXPCListenerDelegate, HelperXPCProtocol {
3333

3434
task.standardOutput = pipe
3535
task.standardError = pipe
36-
task.arguments = ["-c", "xattr -d com.apple.quarantine '\(path)'"]
37-
task.executableURL = URL(fileURLWithPath: "/bin/bash")
36+
task.arguments = ["-d", "com.apple.quarantine", path]
37+
task.executableURL = URL(fileURLWithPath: "/usr/bin/xattr")
3838

3939
do {
4040
try task.run()

0 commit comments

Comments
 (0)