Ver código fonte

fixed exec cmd in Install

Piotr Labudda 8 anos atrás
pai
commit
a93effde60
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      SE/se-lib/Route/Install.php

+ 1 - 2
SE/se-lib/Route/Install.php

@@ -278,8 +278,7 @@ jQuery(document).ready(function () {
 		$cmds[] = "echo `git show-ref --head|head -1|head -c 8` > SE/VERSION ";
 		$hasError = false;
 		foreach ($cmds as $cmd) {
-			$out = ''; $ret = '';
-			exec("cd {$installPath} && {$cmd}", $out, $ret);
+			V::exec("cd {$installPath} && {$cmd}", $out, $ret);
 			if (0 !== $ret) $hasError = true;
 			DBG::nicePrint($out, "cmd: `{$cmd}` (return:{$ret})");
 		}