summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/build b/build
index bcdc56e..19d749f 100755
--- a/build
+++ b/build
@@ -113,7 +113,7 @@ install: build
for target in $$(cat ../targets); do \
if [ '$(OPK_HOST_ARCH)' = "$${target}" ]; then \
for util in "binutils-$${target}.data/usr/bin/$${target}-"*; do \
- if [ "$${util}" = 'ar' ]; then \
+ if [ "$${util##*/$${target}-}" = 'ar' ]; then \
dest='ar.binutils'; \
else \
dest="$${util##*/$${target}-}"; \