make sure that there is only one hit by resolving links

master
zeus 2021-08-31 17:42:21 +02:00
parent 7d3e53d37c
commit 7518569652
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# shows `apt-cache show`information for a package that given binary belongs to (relative path) # shows `apt-cache show`information for a package that given binary belongs to (relative path)
apt-cache show $(apt-file search $(readlink -f "$(which $1)") | cut -d ":" -f 1) #apt-cache show $(apt-file search $(readlink -f "$(which $1)") | cut -d ":" -f 1)
apt-cache show $(dpkg -S $(readlink -f "$(which $1)") | cut -d ":" -f 1)
exit 0 exit 0