Fixed a bug where verify_store would create a " directory tree.

This commit is contained in:
Jon-William Lewis
2016-02-15 00:08:21 -06:00
parent a8a92ba079
commit 3664b3b429

View File

@@ -1,7 +1,7 @@
function verify_store {
ETC_DIR="$(dirname \"$CONFIG_FILE\")"
ETC_DIR=$(dirname "$CONFIG_FILE")
STORE_DIRS=("$ROOT_DIR" "$NOTES_DIR" "$TMP_DIR" "$ETC_DIR")
for DIR in ${STORE_DIRS[@]}; do
for DIR in "${STORE_DIRS[@]}"; do
mkdir -p "$DIR"
done
}