git pull finished (v0.1)
This commit is contained in:
parent
79818b8c4e
commit
aecb4861d7
|
@ -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 [];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue