mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
0c04c6d83c
- 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.
23 lines
449 B
Swift
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()
|
|
}
|
|
|