From ece82841cd1e343d459d70d615856a8b8c73d1f9 Mon Sep 17 00:00:00 2001 From: Jon Lewis Date: Sun, 1 May 2016 20:36:23 -0500 Subject: [PATCH] Fixed a bug where the init function would not create the notes directory. --- src/includes/init_store.sns.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/includes/init_store.sns.sh b/src/includes/init_store.sns.sh index b3095de..0cae7a2 100644 --- a/src/includes/init_store.sns.sh +++ b/src/includes/init_store.sns.sh @@ -1,8 +1,8 @@ function init_store { -if [ ! -d "$ROOT_DIR" ]; then mkdir -p "$ROOT_DIR"; WILL_INIT="TRUE"; fi -if [ ! -d "$TMP_DIR" ]; then mkdir -p "$TMP_DIR" ; WILL_INIT="TRUE"; fi - +if [ ! -d "$ROOT_DIR" ]; then mkdir -p "$ROOT_DIR" ; WILL_INIT="TRUE"; fi +if [ ! -d "$TMP_DIR" ]; then mkdir -p "$TMP_DIR" ; WILL_INIT="TRUE"; fi +if [ ! -d "$NOTES_DIR" ]; then mkdir -p "$NOTES_DIR"; fi cat > "$CONFIG_FILE" << EOF # This file contains directives for the Simple Note System.