1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Reinstall wrapper if wrapperVersion.txt not found.

This commit is contained in:
Cedric Beust 2016-04-19 00:44:19 -08:00
parent 95ca037845
commit be4af5dcce

View file

@ -214,6 +214,9 @@ public class Main {
} }
} }
} }
} else {
log(2, " Couldn't find $VERSION_TEXT, overwriting the installed wrapper");
installWrapperFiles(version, wrapperVersion);
} }
} }
@ -245,7 +248,7 @@ public class Main {
} }
// //
// Save wrapper-version.txt // Save wrapperVersion.txt
// //
log(2, " Writing " + VERSION_TXT); log(2, " Writing " + VERSION_TXT);
try (FileWriter fw = new FileWriter(VERSION_TXT)) { try (FileWriter fw = new FileWriter(VERSION_TXT)) {