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 0ba5410 commit aa0c1b7Copy full SHA for aa0c1b7
notes
@@ -13,13 +13,10 @@ 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 man page says "create the Dir(s) if they donot already exist"
18
if ! $(mkdir -p "$notes_dir"); then
19
- echo "please, set \$NOTES_DIRECTORY to a different location" >&2
+ echo "Could not create directory $notes_dir, please update your \$NOTES_DIRECTORY" >&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