make sure that there is only one hit by resolving links

This commit is contained in:
zeus 2021-08-31 17:30:03 +02:00
parent 0eb1ec6d86
commit 7d3e53d37c

View File

@ -1,4 +1,4 @@
#!/bin/bash
# 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