优化日志

This commit is contained in:
liuxiaobo 2025-05-30 23:33:38 +08:00
parent e84f409431
commit 7b78ddeeb2
2 changed files with 1 additions and 2 deletions

View File

@ -59,7 +59,6 @@ RemotePath="/home/ubuntu/game"
RemoteFile="$RemotePath/$FILE" RemoteFile="$RemotePath/$FILE"
LocalFile="bin/$FILE" LocalFile="bin/$FILE"
rm -rf '$LocalFile'
plink -ssh -batch -pw "$Password" "$Username@$Host" "rm -f '$RemoteFile'" plink -ssh -batch -pw "$Password" "$Username@$Host" "rm -f '$RemoteFile'"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "删除文件成功" echo "删除文件成功"

View File

@ -19,7 +19,7 @@ type ClientConfig struct {
} }
func initLog() { func initLog() {
log.Open("client.log", log.DebugL) log.Open("./log/client.log", log.DebugL)
} }
func LoadConfig(GitCommit, GitBranch, BuildDate string) { func LoadConfig(GitCommit, GitBranch, BuildDate string) {