From 23c2a9909f44cecce32217516c8f667a3e317b99 Mon Sep 17 00:00:00 2001 From: James Tomasino Date: Wed, 11 Jul 2018 23:36:43 -0400 Subject: [PATCH] if root dir exists, create folders from there as defined --- burrow | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/burrow b/burrow index 73e1bac..e9c62ea 100755 --- a/burrow +++ b/burrow @@ -431,7 +431,10 @@ make_post () { create_rss="$6" check_directory "$config_dir_gopher" - check_directory "${config_dir_gopher}${post_type}" + + if [ ! -d "${config_dir_gopher}${post_type}" ]; then + mkdir -p "${config_dir_gopher}${post_type}" + fi printf "%s" "$query" read -r title