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