From ee2950f25f8a151b7773b15012e47ce0883c727c Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 18 Oct 2023 16:13:06 +0200 Subject: fix(hm/pkgs/scr/neorg): Silence 'task', when it can't find the rc element --- hm/soispha/pkgs/scripts/wrappers/neorg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hm') diff --git a/hm/soispha/pkgs/scripts/wrappers/neorg b/hm/soispha/pkgs/scripts/wrappers/neorg index 6a36a6d6..78f6f64c 100755 --- a/hm/soispha/pkgs/scripts/wrappers/neorg +++ b/hm/soispha/pkgs/scripts/wrappers/neorg @@ -39,7 +39,7 @@ open_neorg_workspace_prompt() { open_current_task_context() { current_context="$(task _get rc.context)"; if [ "$current_context" ]; then - context_path="$(task _get rc.context."$current_context".rc.neorg_path)"; + context_path="$(task _get rc.context."$current_context".rc.neorg_path 2>/dev/null)"; if ! [ "$context_path" ]; then context_path="$(grep "context.$current_context.rc.neorg_path" "%HOME_TASKRC" | awk 'BEGIN {FS="="} {print $2}')"; [ "$context_path" ] || die "All contexts should have a 'neorg_path' set!" -- cgit 1.4.1