make sure that there is only one hit by resolving links
parent
7d3e53d37c
commit
7518569652
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue