no message

This commit is contained in:
hellcat 2025-04-14 13:44:52 +08:00
parent 9313298ea0
commit b770ba1bb5

View File

@ -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");
} }
// 没有仓库,创建一个 // 没有仓库,创建一个
@ -85,6 +84,9 @@ class CronController
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";
} }
// 写入内容 // 写入内容