completions/portage: Follow symbolic links in repos.conf

Repository configuration files in the repos.conf/ directory may also be symbolic
links, so make sure to follow those.
This commit is contained in:
Wolfgang Müller 2024-10-03 18:25:12 +02:00 committed by Fabian Boehm
parent cd9e50c2cc
commit 38300a818e

View file

@ -3,7 +3,7 @@ function __fish_print_portage_repository_paths --description 'Print the paths of
set -l b
set -l c /usr/share/portage/config/repos.conf
test -d $a
and set b (find $a -type f 2>/dev/null)
and set b (path filter -f -- $a/**)
test -f $a
and set b $a
test -n "$b"