From 545ffd01f405e0c3929b4d28443aa60886a59d2c Mon Sep 17 00:00:00 2001 From: Jaroslaw Konik Date: Thu, 30 May 2024 21:20:17 +0200 Subject: [PATCH] update --- nvim_remote | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvim_remote b/nvim_remote index 6ea2f82..d213ff6 100755 --- a/nvim_remote +++ b/nvim_remote @@ -15,10 +15,10 @@ relative_file_path=$path servername=/tmp/nvr$(echo $main_module_repo_path | tr "/" "_") -if [ -n "$relative_file_path" ]; then +if [ -f "$relative_file_path" ]; then nvr -s --servername $servername $line "$relative_file_path" -elif [ -n "$repo_relative_file_path" ]; then +elif [ -f "$repo_relative_file_path" ]; then nvr -s --servername $servername $line "$repo_relative_file_path" -elif [ -n "$main_module_relative_file_path" ]; then +elif [ -f "$main_module_relative_file_path" ]; then nvr -s --servername $servername $line "$main_module_relative_file_path" fi