summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xremote/setup_target10
1 files changed, 5 insertions, 5 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 00a182f3..2f4d6e37 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -178,11 +178,11 @@ copy_files_with_deps () {
done
done
- [ ! -z "${REQUIRED_LIBRARIES}" ] && pinfo "Gathering required libraries from config file..."
- for LIB in ${REQUIRED_LIBRARIES}
- do
- for LOCATION in $(find . -name ${LIB}.so\*)
- do
+ [ ! -z "$REQUIRED_LIBRARIES" ] && pinfo "Gathering required libraries from config file..."
+ for LIB in $REQUIRED_LIBRARIES; do
+ FILE_CANDIDATES=$(find . -name "${LIB}.so*")
+ [ -z "$FILE_CANDIDATES" ] && perror "Cannot find required library $LIB"
+ for LOCATION in $FILE_CANDIDATES; do
pdebug "* $LOCATION"
strip "$LOCATION" || pwarning "Could not strip '${LOCATION}'"
get_link_chain "${MODULE_BUILD_DIR}/${LOCATION}" "${MODULE_BUILD_DIR}" >> "${COPYFILES_LIST}"