Skip to content

Commit 0859317

Browse files
authored
main.c: add isregd command
1 parent c59525d commit 0859317

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ int main()
4949

5050
WslApiInit();
5151

52+
if(WARGV_CMP(1,L"isregd"))
53+
{
54+
return (!WslIsDistributionRegistered(TargetName));
55+
}
56+
5257
if(!WslIsDistributionRegistered(TargetName))
5358
{
5459
bool InstSilent = false;

0 commit comments

Comments
 (0)