File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change 2727 // 执行相应的 shell 脚本
2828 $ cmd_result = shell_exec ("{$ root }/includeSh/ {$ origin_repository }.sh 2>&1 " );
2929
30- if ($ cmd_result == FALSE ) {
31- $ msg = [
32- 'date ' => date ('c ' ),
33- 'cmd ' => "{$ root }/includeSh/ {$ origin_repository }.sh 2>&1 " ,
34- 'repository ' => $ origin_repository ,
35- 'message ' => 'cmd fail '
36- ];
37- echo json_encode ($ msg );
38-
39- exit ();
40- } else {
41- $ msg = [
42- 'date ' => date ('c ' ),
43- 'cmd ' => "{$ root }/includeSh/ {$ origin_repository }.sh 2>&1 " ,
44- 'repository ' => $ origin_repository ,
45- 'message ' => 'cmd success '
46- ];
47- echo json_encode ($ msg );
30+ $ msg = [
31+ 'date ' => date ('c ' ),
32+ 'repository ' => $ origin_repository ,
33+ 'cmd ' => "{$ root }/includeSh/ {$ origin_repository }.sh 2>&1 " ,
34+ 'cmd_result ' => $ cmd_result ,
35+ 'message ' => 'cmd exe '
36+ ];
37+ echo json_encode ($ msg );
4838
49- exit ();
50- }
5139
5240
5341
You can’t perform that action at this time.
0 commit comments