From 989862b78ac1acb159128dcde6fa77a13465ddb9 Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 20 Oct 2023 21:56:48 +0200 Subject: fix(hm/pkgs/scr/neorg): Cd to dirname of package file --- hm/soispha/pkgs/scripts/wrappers/neorg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg index f26faac4..c1f23edb 100755 --- a/hm/soispha/pkgs/scripts/wrappers/neorg +++ b/hm/soispha/pkgs/scripts/wrappers/neorg @@ -141,7 +141,7 @@ LIST_list_all_contexts_comma() { # Add {{{ ADD_open_taskwarrior_project_file() { task_project_file="%TASK_PROJECT_FILE"; - cd "$task_project_file" || die "BUG: task_project_file ('$task_project_file') can't be accessed" + cd "$(dirname $task_project_file)" || die "BUG: task_project_file ('$task_project_file') can't be accessed" git_dir="$(search_flake_base_dir)"; [ "$git_dir" ] || die "(BUG): No git directory?" cd "$git_dir" || die "Unreachable, this MUST exists" -- cgit 1.4.1