Fixed a bug where the init function would not create the notes directory.

This commit is contained in:
Jon Lewis
2016-05-01 20:36:23 -05:00
parent 7853cee63c
commit ece82841cd

View File

@@ -1,8 +1,8 @@
function init_store {
if [ ! -d "$ROOT_DIR" ]; then mkdir -p "$ROOT_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.