fix: 🐛 构建脚本缺陷 (#15)

This commit is contained in:
nsnail 2023-12-13 21:42:49 +08:00 committed by GitHub
parent d50e5b2d27
commit d4d5467656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -6,6 +6,6 @@ git add ../
git pull git pull
git push --set-upstream origin $branch git push --set-upstream origin $branch
Start-Process -FilePath "https://github.com/nsnail/dot/compare/main...$branch" Start-Process -FilePath "https://github.com/nsnail/dot/compare/main...$branch"
启用写入模式-Host "按『Enter』重建分支『Ctrl+C』退出" Write-Host "按『Enter』重建分支『Ctrl+C』退出"
Pause Pause
./git.rc.ps1 ./git.rc.ps1

View File

@ -13,11 +13,11 @@ $file = 9999
while ($null -eq $files[[int]$file - 1]) while ($null -eq $files[[int]$file - 1])
{ {
$i = 0 $i = 0
启用写入模式-Host '请选择要切换的配置文件文件' Write-Host '请选择要切换的配置文件文件'
foreach ($file in $files) foreach ($file in $files)
{ {
$i++ $i++
启用写入模式-Host $i $file.Name Write-Host $i $file.Name
} }
$file = 读取-Host $file = 读取-Host
} }