diff --git a/build/api/module/release.php b/build/api/module/release.php index c41c177..47c3d20 100644 --- a/build/api/module/release.php +++ b/build/api/module/release.php @@ -48,6 +48,16 @@ /* [3] Launch script =========================================================*/ /* (1) Launch command + test */ + $stdout = shell_exec('cd '.$js[$project]['root'].'; git pull origin '.$branch.';'); + + /* (2) If error, raise error */ + if( is_null($stdout) ) + return ['ModuleError'=>ManagerError::PermissionError]; + + + /* [4] Return success error + =========================================================*/ + return []; } }