Skip to content

Commit 0bbe643

Browse files
committed
chore: 更新.gitignore并添加环境变量加载功能
在.gitignore中添加env.ps1文件忽略规则 在profile.ps1中添加env.ps1环境变量加载逻辑
1 parent 45a9ecc commit 0bbe643

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ docker_data/
1010

1111
# pester配置文件
1212
coverage.xml
13-
testResults.xml
13+
testResults.xml
14+
# 加载环境变量
15+
env.ps1

profile/profile.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ if (Test-Path -Path "$PSScriptRoot\enableProxy") {
1414
}
1515

1616

17+
if(Test-Path -Path "$PSScriptRoot/env.ps1"){
18+
. $PSScriptRoot/env.ps1
19+
}
20+
1721

1822

1923

0 commit comments

Comments
 (0)