diff --git a/build/api/module/release.php b/build/api/module/release.php index a2e4599..ad955a3 100755 --- a/build/api/module/release.php +++ b/build/api/module/release.php @@ -48,11 +48,12 @@ /* [3] Launch script =========================================================*/ /* (1) Launch command + test */ - $stdout = shell_exec('cd '.$js[$project]['git'].'; git pull origin '.$branch.';'); + $cmd = 'cd '.$js[$project]['git'].'; git pull origin '.$branch.';'; + $stdout = shell_exec($cmd); /* (2) If error, raise error */ if( is_null($stdout) ) - return ['ModuleError'=>ManagerError::PermissionError]; + return ['ModuleError'=>ManagerError::PermissionError, 'command'=>$cmd]; /* [4] Return success error