CloverBootloader/CloverApp/Clover/Tasks.swift
vectorsigma72 0c04c6d83c Clover.app v1.11 Beta
- Retro compatibility since OS X Maveriks (10.9).
- Search update ability of Clover.app.
- Auto mount of the selected ESP.
- After the installation, if the target is an EFI system partition, that partition will be umounted.
- French translation by Ellibz.
- Code corrections and improvements.
2019-12-01 13:01:27 +01:00

23 lines
449 B
Swift

//
// Tasks.swift
// Clover
//
// Created by vector sigma on 24/11/2019.
// Copyright © 2019 CloverHackyColor. All rights reserved.
//
import Foundation
func run(cmd: String) {
let task = Process()
if #available(OSX 10.13, *) {
task.executableURL = URL(fileURLWithPath: "/bin/bash")
} else {
task.launchPath = "/bin/bash"
}
task.environment = ProcessInfo.init().environment
task.arguments = ["-c", cmd]
task.launch()
}