if root dir exists, create folders from there as defined

This commit is contained in:
James Tomasino 2018-07-11 23:36:43 -04:00
parent d2543cccab
commit 23c2a9909f
1 changed files with 4 additions and 1 deletions

5
burrow
View File

@ -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