Skip to content

Commit

Permalink
解释环境变量 #390
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda committed May 26, 2023
1 parent 8ed53ea commit 576a81a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BBDown/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ private static async Task DoWorkAsync(MyOption myOption)

if (!string.IsNullOrEmpty(myOption.WorkDir))
{
//解释环境变量
myOption.WorkDir = Environment.ExpandEnvironmentVariables(myOption.WorkDir);
var dir = Path.GetFullPath(myOption.WorkDir);
if (!Directory.Exists(dir))
{
Expand Down

0 comments on commit 576a81a

Please sign in to comment.