Skip to content

Commit 8076d34

Browse files
committed
update kernel
1 parent 4b02485 commit 8076d34

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/BowlerStudio.java

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -717,26 +717,7 @@ private static void makeSymLinkOfCurrentVersion() throws Exception {
717717

718718

719719
public static void ensureUpdated(boolean check,String ... urls) {
720-
for(String s:urls) {
721-
722-
if(s==null)
723-
continue;
724-
try {
725-
File wd = ScriptingEngine.getRepositoryCloneDirectory(s);
726-
if(check && wd.exists()) {
727-
Log.error("Skipping update, clone exists "+s);
728-
continue;
729-
}
730-
Log.debug("Pulling "+s);
731-
ScriptingEngine.cloneRepo(s, null);
732-
ScriptingEngine.pull(s);
733-
} catch (Throwable e) {
734-
// Auto-generated catch block
735-
e.printStackTrace();
736-
//ScriptingEngine.deleteRepo(s);
737-
//ScriptingEngine.cloneRepo(s, null);
738-
}
739-
}
720+
BowlerKernel.ensureUpdated(check, urls);
740721
}
741722

742723
// private static void removeAssets(String myAssets)

0 commit comments

Comments
 (0)