make sure that there is only one hit by resolving links

master
zeus 2021-08-31 17:30:03 +02:00
parent 0eb1ec6d86
commit 7d3e53d37c
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/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 $(which $1) | cut -d ":" -f 1) apt-cache show $(apt-file search $(readlink -f "$(which $1)") | cut -d ":" -f 1)
exit 0 exit 0