We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8c4a95 + b1f36b1 commit 7781bb9Copy full SHA for 7781bb9
minver-cli/Program.cs
@@ -44,10 +44,13 @@ private static int Main(string[] args)
44
}
45
#endif
46
47
- if (!string.IsNullOrEmpty(workDirArg.Value) && !Directory.Exists(workDir = workDirArg.Value))
+ if (!string.IsNullOrEmpty(workDirArg.Value))
48
{
49
- Logger.ErrorWorkDirDoesNotExist(workDirArg.Value);
50
- return 2;
+ if (!Directory.Exists(workDir = workDirArg.Value))
+ {
51
+ Logger.ErrorWorkDirDoesNotExist(workDirArg.Value);
52
+ return 2;
53
+ }
54
55
#if MINVER_CLI
56
else if (!string.IsNullOrEmpty(workDirOption.Value()) && !Directory.Exists(workDir = workDirOption.Value()))
0 commit comments