mirror of
https://github.com/kubernetes-sigs/kind.git
synced 2025-12-01 07:26:05 +07:00
fix querying symlinks
This commit is contained in:
@@ -30,7 +30,7 @@ file_to_package() {
|
||||
# `dpkg-query --search $file-pattern` outputs lines with the format: "$package: $file-path"
|
||||
# where $file-path belongs to $package
|
||||
# https://manpages.debian.org/jessie/dpkg/dpkg-query.1.en.html
|
||||
dpkg-query --search "${1}" | cut -d':' -f1
|
||||
dpkg-query --search "$(realpath "${1}")" | cut -d':' -f1
|
||||
}
|
||||
|
||||
# package_to_copyright gives the path to the copyright file for the package $1
|
||||
|
||||
Reference in New Issue
Block a user