Skip to content

Commit

Permalink
issue fixing, #98
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Dec 1, 2023
1 parent 074eedf commit 108795a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public MetanormaCollectionManifest(String outputPath, List<Map.Entry<String,Stri
public void generate() throws IOException {
// get repository root folder from 1st file
String repositoryRootFolder = Util.getRepositoryRootFolder(inputOutputFiles.get(0).getValue());
if (repositoryRootFolder.isEmpty() && outputPath != null) {
if (repositoryRootFolder.isEmpty() && outputPath != null && !outputPath.isEmpty()) {
String parentOutputPath = new File(outputPath).getParent();
repositoryRootFolder = parentOutputPath;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/metanorma/MetanormaCover.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public MetanormaCover(String outputPath, List<Map.Entry<String,String>> inputOut
public void generate() throws IOException {
// get repository root folder from 1st file
String repositoryRootFolder = Util.getRepositoryRootFolder(inputOutputFiles.get(0).getValue());
if (repositoryRootFolder.isEmpty() && outputPath != null) {
if (repositoryRootFolder.isEmpty() && outputPath != null && !outputPath.isEmpty()) {
String parentOutputPath = new File(outputPath).getParent();
repositoryRootFolder = parentOutputPath;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/metanorma/ScriptCollection.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ScriptCollection(String outputPath, List<Map.Entry<String,String>> inputO
public void generate() throws IOException {
// get repository root folder from 1st file
String repositoryRootFolder = Util.getRepositoryRootFolder(inputOutputFiles.get(0).getValue());
if (repositoryRootFolder.isEmpty() && outputPath != null) {
if (repositoryRootFolder.isEmpty() && outputPath != null && !outputPath.isEmpty()) {
String parentOutputPath = new File(outputPath).getParent();
repositoryRootFolder = parentOutputPath;
}
Expand Down

0 comments on commit 108795a

Please sign in to comment.