From e015f304114b9598981ea24b486470d2bb73d50e Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 21 Feb 2025 14:38:04 -0700 Subject: Make sure the path exists before editing it in notes-select.sh --- extras/HOME/.local/bin/notes-select.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/HOME/.local/bin/notes-select.sh b/extras/HOME/.local/bin/notes-select.sh index d168c69..e630eca 100755 --- a/extras/HOME/.local/bin/notes-select.sh +++ b/extras/HOME/.local/bin/notes-select.sh @@ -23,7 +23,8 @@ if [ -z "${selection}" ] ; then fi function do_edit { - local path="$(readlink -f "$1")" + local path="$(readlink -fm "$1")" + mkdir -p "$(dirname "$path")" alacritty --class floating-terminal -e vim "$path" if [[ "$path" == *"/shared/"* ]] ; then -- cgit