You need to sign in or sign up before continuing.
Commit ea604d3b by 张思远

shell

parent 651ba208
Pipeline #158 canceled with stages
#!/bin/bash
git pull
\ No newline at end of file
<?php <?php
header('Content-type:text/html;charset=utf-8'); header('Content-type:text/html;charset=utf-8');
$post = file_get_contents("php://input"); $post = file_get_contents("php://input");
$post = json_decode($post, true); $post = json_decode($post, true);
$project = $post['project'];
$web_url = $project['web_url'];
$web_url = str_replace('http://','https://', $web_url);
// echo $web_url;exit;
$dir = __DIR__;
$cmd = 't.bat ' . $dir . ' ' . $web_url; if (strpos(strtoupper(PHP_OS), 'WIN') === 0) {
$project = $post['project'];
$web_url = $project['web_url'];
$web_url = str_replace('http://','https://', $web_url);
// echo $web_url;exit;
$dir = __DIR__;
$cmd = 't.bat ' . $dir . ' ' . $web_url;
} else {
$cmd = 't.sh';
}
$descriptorspec = [ $descriptorspec = [
["pipe", "r"], // stdin ["pipe", "r"], // stdin
["pipe", "w"], // stdout ["pipe", "w"], // stdout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment