repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

handle missing symlinks file

73db172cc08c3fb5d3705f70c570de7f2aa3b963

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

bootstripper.java

Modified
17 17 decrypt_secrets(dorkfiles_root.resolve("tresor"));
18 18 var hostname = hostname();
19 19 log("Hostname: {0}", emphasize_global(hostname));
20 - var symlinks_file = hostname + ".symlinks";
21 - create_symlinks(dorkfiles_root, dorkfiles_root.resolve(symlinks_file));
20 + var symlinks_file = dorkfiles_root.resolve(hostname + ".symlinks");
21 + if (Files.exists(symlinks_file)) {
22 + create_symlinks(dorkfiles_root, symlinks_file);
23 + } else {
24 + throw fail("Expected a file containing symlinks at: {0}. Found nothing!", symlinks_file);
25 + }
24 28 static void decrypt_secrets(Path secrets_root) throws Throwable {