1
0
Fork 0

silence empty realpath in lf

This commit is contained in:
Luca Bilke 2024-02-28 12:43:06 +01:00
parent 7f1038f33d
commit 1daf92aa3f
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ cmd fzfgrep ${{
--ansi --layout=reverse --header 'Searching file contents' |\ --ansi --layout=reverse --header 'Searching file contents' |\
grep -iv -e 'Trash/files' -e 'Trash/info' grep -iv -e 'Trash/files' -e 'Trash/info'
)" )"
file="$(realpath "$(echo "$res" | cut -d':' -f1 | sed 's/\\/\\\\/g;s/"/\\"/g')")" file="$(realpath "$(echo "$res" | cut -d':' -f1 | sed 's/\\/\\\\/g;s/"/\\"/g')" 2>/dev/null)"
row="$(echo "$res" | cut -d':' -f2)" row="$(echo "$res" | cut -d':' -f2)"
column="$(echo "$res" | cut -d':' -f3)" column="$(echo "$res" | cut -d':' -f3)"
if [ -n "$res" ]; then if [ -n "$res" ]; then