From 810a369059f77a9bcd0bf4c5cb24a750953efe67 Mon Sep 17 00:00:00 2001 From: sikofitt Date: Thu, 22 Dec 2016 19:20:56 -0800 Subject: [PATCH] Transfer --- src/Sikofitt/OS/OSReleaseProber.php | 29 +++++++++++++++++++ .../Console/Command/TorDownloadCommand.php | 8 ++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 src/Sikofitt/OS/OSReleaseProber.php diff --git a/src/Sikofitt/OS/OSReleaseProber.php b/src/Sikofitt/OS/OSReleaseProber.php new file mode 100644 index 0000000..e21a134 --- /dev/null +++ b/src/Sikofitt/OS/OSReleaseProber.php @@ -0,0 +1,29 @@ + [ 'file' => 'https://www.torproject.org/dist/tor-0.2.9.8.tar.gz', @@ -57,7 +63,7 @@ class TorDownloadCommand extends Command { $file = $guzzle->get($this->downloadUrls['linux']['file']); file_put_contents($this->baseDir . '/' . $this->downloadUrls['linux']['filename'], $file->getBody()->getContents()); } - + $tar = new ProcessBuilder(); $tar->setPrefix('/bin/tar') ->setWorkingDirectory($this->baseDir)