This commit is contained in:
Pedro Piñera 2020-02-28 10:41:34 +01:00
parent d85a6776b9
commit 012f4e6b40
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ final class EnvUpdater: EnvUpdating {
// Download
let outputPath = googleCloudStorageClient.latestTuistEnvBundleURL().absoluteString
let downloadPath = directory.appending(component: "tuistenv.zip")
try System.shared.run("/usr/bin/curl", "-LSs", "--output", outputPath)
try System.shared.run("/usr/bin/curl", "-LSs", "--output", downloadPath.pathString, outputPath)
try System.shared.run("/usr/bin/unzip", "-o", downloadPath.pathString, "-d", "/tmp/")
let binaryPath = "/tmp/tuistenv"
try System.shared.run(["/bin/chmod", "+x", binaryPath])