Skip to content

Commit

Permalink
default to -b /tmp/ if -b,-B,-T are omitted
Browse files Browse the repository at this point in the history
  • Loading branch information
willr3 committed Jun 11, 2021
1 parent c043507 commit 597eda3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/io/hyperfoil/tools/qdup/QDup.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public QDup(String... args) {
.build()
);

basePathGroup.setRequired(true);
basePathGroup.setRequired(false);

options.addOptionGroup(basePathGroup);

Expand Down Expand Up @@ -379,7 +379,7 @@ public QDup(String... args) {
} else if (commandLine.hasOption("fullPath")) {
outputPath = commandLine.getOptionValue("fullPath");
} else {
outputPath = "/tmp";
outputPath = "/tmp/"+uid;
}

Properties properties = new Properties();
Expand All @@ -398,8 +398,8 @@ public QDup(String... args) {
} catch (IOException e) {
e.printStackTrace();
}
version = properties.getProperty("version", "unkonown");
hash = properties.getProperty("hash", "unkonown");
version = properties.getProperty("version", "unknown");
hash = properties.getProperty("hash", "unknown");

if (yamlPaths.isEmpty()) {
logger.error("Missing required yaml file(s)");
Expand Down

0 comments on commit 597eda3

Please sign in to comment.