From a149e93262a8e3cec4932ddbeb099b67feb80937 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 8 Nov 2016 09:26:00 +0100 Subject: [PATCH] Release debug --- build/api/module/release.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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