Skip to content

Commit

Permalink
Fix command line 'pack'
Browse files Browse the repository at this point in the history
  • Loading branch information
emd4600 committed Oct 12, 2024
1 parent 2ef9f4e commit b5158e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sporemodder/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ public Integer call() throws Exception {
input = input.getAbsoluteFile();
output = output.getAbsoluteFile();

if (!input.exists() || !input.isFile()) {
System.err.println("Cannot pack: input file '" + input.getPath() + "' does not exist");
if (!input.exists() || !input.isDirectory()) {
System.err.println("Cannot pack: input directory '" + input.getPath() + "' does not exist");
return 1;
}

Expand Down

0 comments on commit b5158e1

Please sign in to comment.