Skip to content

Commit

Permalink
Verify the CWD
Browse files Browse the repository at this point in the history
  • Loading branch information
wixoaGit committed Oct 20, 2023
1 parent 9cca7e6 commit c7c6515
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions OpenDreamPackageTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public static int Main(string[] args) {
if (!TryParseArgs(args, out var options))
return 1;

if (!File.Exists("OpenDream.sln")) {
Console.Error.WriteLine(
"You must run this tool from the root of the OpenDream repo. OpenDream.sln was not found.");
return 1;
}

switch (options) {
case ServerOptions serverOptions:
ServerPackaging.Package(serverOptions);
Expand Down

0 comments on commit c7c6515

Please sign in to comment.