no message
This commit is contained in:
parent
9313298ea0
commit
b770ba1bb5
@ -73,7 +73,6 @@ class CronController
|
|||||||
// 没有文件夹,创建一个
|
// 没有文件夹,创建一个
|
||||||
if (!is_dir($sUserProjectDir)) {
|
if (!is_dir($sUserProjectDir)) {
|
||||||
mkdir($sUserProjectDir, 0755, true); // 0755 是权限,true 表示递归创建目录
|
mkdir($sUserProjectDir, 0755, true); // 0755 是权限,true 表示递归创建目录
|
||||||
$output = shell_exec("git config --global --add safe.directory $sUserProjectDir 2>&1");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 没有仓库,创建一个
|
// 没有仓库,创建一个
|
||||||
@ -84,7 +83,10 @@ class CronController
|
|||||||
$output = shell_exec("sh " . $sGitShDir . "/init.sh " . escapeshellarg($sUserProjectDir) . " " . escapeshellarg($sGithubProjectUrl));
|
$output = shell_exec("sh " . $sGitShDir . "/init.sh " . escapeshellarg($sUserProjectDir) . " " . escapeshellarg($sGithubProjectUrl));
|
||||||
|
|
||||||
echo "Output from init.sh:\n$output\n";
|
echo "Output from init.sh:\n$output\n";
|
||||||
|
|
||||||
|
$output = shell_exec("git config --global --add safe.directory $sUserProjectDir 2>&1");
|
||||||
|
|
||||||
|
echo "<br>Output from --add safa.directory:\n$output\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// 写入内容
|
// 写入内容
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user