Forráskód Böngészése

fixed exec cmd in Install

Piotr Labudda 8 éve
szülő
commit
a93effde60
1 módosított fájl, 1 hozzáadás és 2 törlés
  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 ";
 		$cmds[] = "echo `git show-ref --head|head -1|head -c 8` > SE/VERSION ";
 		$hasError = false;
 		$hasError = false;
 		foreach ($cmds as $cmd) {
 		foreach ($cmds as $cmd) {
-			$out = ''; $ret = '';
-			exec("cd {$installPath} && {$cmd}", $out, $ret);
+			V::exec("cd {$installPath} && {$cmd}", $out, $ret);
 			if (0 !== $ret) $hasError = true;
 			if (0 !== $ret) $hasError = true;
 			DBG::nicePrint($out, "cmd: `{$cmd}` (return:{$ret})");
 			DBG::nicePrint($out, "cmd: `{$cmd}` (return:{$ret})");
 		}
 		}