summaryrefslogtreecommitdiffstats
path: root/find-libprovides.sh
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-17 22:13:57 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-17 22:13:57 +0200
commitb561c889bb956d417bec6acb07ed57aa6d958653 (patch)
treea9169ae4c9a932cd3e90e803e0cfd9b8ebe47bd0 /find-libprovides.sh
parentf17c3db7ffb2a51816fe43304a9ca5e8538b2a4b (diff)
downloadbin-b561c889bb956d417bec6acb07ed57aa6d958653.tar.gz
bin-b561c889bb956d417bec6acb07ed57aa6d958653.tar.xz
find-libprovides: fix syntax error
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'find-libprovides.sh')
-rwxr-xr-xfind-libprovides.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/find-libprovides.sh b/find-libprovides.sh
index 452af1a..2d9bd52 100755
--- a/find-libprovides.sh
+++ b/find-libprovides.sh
@@ -29,7 +29,7 @@ do
soarch=$(LC_ALL=C readelf -h "$filename" | sed -n 's/.*Class.*ELF\(32\|64\)/\1/p')
# get the string binaries link to: libfoo.so.1.2 -> libfoo.so.1
sofile=$(LC_ALL=C readelf -d "$filename" 2>/dev/null | sed -n 's/.*Library soname: \[\(.*\)\].*/\1/p')
- [ -z "$sofile" ] && sofile="${$filename##*/}"
+ [ -z "$sofile" ] && sofile="${filename##*/}"
# extract the library name: libfoo.so
soname="${sofile%%\.so\.*}.so"