Skip to content

Commit 574f851

Browse files
authored
Replaced script for creating TmpFS so that it won't kill other Terminal processes. (#18)
1 parent 11f2f55 commit 574f851

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

TmpDisk/TmpDiskManager.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,10 @@ class TmpDiskManager {
272272
let task = Process()
273273
task.launchPath = "/usr/bin/osascript"
274274
let command = "mount_tmpfs -s\(volume.size)M \(volume.path())"
275-
276275
let script = """
277-
tell application "Terminal"
278276
do shell script "\(command)" with administrator privileges
279-
quit
280-
end tell
281277
"""
282-
278+
283279
task.arguments = ["-e", script]
284280
return task
285281
}

0 commit comments

Comments
 (0)