@@ -70,16 +70,16 @@ |
||
| 70 | 70 | { |
| 71 | 71 | $path = parent::detectCommand($path); |
| 72 | 72 | |
| 73 | - return is_executable($path) ? $path : '/usr/bin/env python ' . $path; |
|
| 73 | + return is_executable($path) ? $path : '/usr/bin/env python '.$path; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | public function install() |
| 77 | 77 | { |
| 78 | 78 | if ($this->installer) { |
| 79 | - passthru('/usr/bin/env wget ' . escapeshellarg($this->installer) . ' -O- | /usr/bin/env python', $exitcode); |
|
| 79 | + passthru('/usr/bin/env wget '.escapeshellarg($this->installer).' -O- | /usr/bin/env python', $exitcode); |
|
| 80 | 80 | } elseif ($this->download) { |
| 81 | - $dest = Yii::getAlias('@root/' . $this->name, false); |
|
| 82 | - passthru('/usr/bin/env wget ' . escapeshellarg($this->download) . ' -O ' . $dest, $exitcode); |
|
| 81 | + $dest = Yii::getAlias('@root/'.$this->name, false); |
|
| 82 | + passthru('/usr/bin/env wget '.escapeshellarg($this->download).' -O '.$dest, $exitcode); |
|
| 83 | 83 | } else { |
| 84 | 84 | passthru("/usr/bin/pip install {$this->package}", $exitcode); |
| 85 | 85 | } |