We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7352030 commit 4096451Copy full SHA for 4096451
notes
@@ -13,9 +13,13 @@ notes_dir="${configured_dir:-$HOME/notes}"
13
escaped_notes_dir="$(printf "$notes_dir" | sed -e 's/[]\/$*.^|[]/\\&/g')"
14
15
# Make sure the notes directory actually exists, and create it if it doesn't
16
-if [ ! -d "$notes_dir" ]; then
17
- mkdir -p "$notes_dir"
+# if [ ! -d "$notes_dir" ]; then
+# mkdir man page says "create the Dir(s) if they donot already exist"
18
+if ! $(mkdir -p "$notes_dir"); then
19
+ echo "set \$NOTES_DIRECTORY to a different location" >&2
20
+ exit 1
21
fi
22
+# fi
23
24
# If no $EDITOR, look for `editor` (symlink on debian/ubuntu/etc)
25
if [ -z "$EDITOR" ] && type editor &>/dev/null; then
0 commit comments