Skip to content

Commit c3808a2

Browse files
authored
fix: migration issue on first run (#52)
1 parent 6b86d0b commit c3808a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

zip-plugin/src/main/java/dev/imprex/zip/BackpackMigrator.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public static void checkForMigrations(Path folderPath) {
4141
int statisticFailed = 0;
4242

4343
ZIPLogger.info("Checking for migration data...");
44+
45+
if (Files.notExists(folderPath)) {
46+
ZIPLogger.info("No migrations found.");
47+
return;
48+
}
4449

4550
try (Stream<Path> stream = Files.walk(folderPath, 1)) {
4651
Path[] paths = stream

0 commit comments

Comments
 (0)