From d37369df53087ccc84d32569804fd14398d968e0 Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Sun, 15 Jul 2018 20:30:51 -0400 Subject: [PATCH] small fix for generating burrow roots if never made before --- burrow | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/burrow b/burrow index 315f775..d4a9f86 100755 --- a/burrow +++ b/burrow @@ -633,6 +633,11 @@ main () { fi if [ $arg_root -gt 0 ]; then + # If we don't have a gophermap, create one to avoid + # accidentally sorting the file on first-time generation + if [ ! -f "${config_dir_gopher}/gophermap" ]; then + touch "${config_dir_gopher}/gophermap" + fi make_post "" \ "" \ true \