mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 08:59:33 +08:00
修正脚本:修复 PowerShell 和批处理脚本中的中文乱码问题
This commit is contained in:
@@ -30,8 +30,8 @@ git pull origin master
|
|||||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||||
|
|
||||||
# 检查本地和远端是否一致
|
# 检查本地和远端是否一致
|
||||||
$Local = git rev-parse @
|
$Local = git rev-parse "@"
|
||||||
$Remote = git rev-parse @{u}
|
$Remote = git rev-parse "@{u}"
|
||||||
|
|
||||||
if ($Local -ne $Remote) {
|
if ($Local -ne $Remote) {
|
||||||
Write-Host "Error: Local branch is not in sync with remote. Please push your changes first." -ForegroundColor Red
|
Write-Host "Error: Local branch is not in sync with remote. Please push your changes first." -ForegroundColor Red
|
||||||
|
|||||||
Reference in New Issue
Block a user