Skip to content

Commit 93864b8

Browse files
authored
Merge pull request #44 from sanshu-rom/patch-8
增加一个退出虚拟环境
2 parents ae9bed9 + 2068b54 commit 93864b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autorun.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ if ($pm2 -and $nodeExe) {
264264
Write-Host "已创建/更新每 6 小时更新任务:$taskUpdate" -ForegroundColor Green
265265
}
266266

267+
# ------ 退出虚拟环境 ------
268+
deactivate
267269
# ---------- 完成 ----------
268270
$ip = (ipconfig | Select-String "IPv4 地址" | Select-Object -First 1).ToString().Split(":")[-1].Trim()
269271
$public = (Invoke-RestMethod "https://ipinfo.io/ip")

0 commit comments

Comments
 (0)