diff options
Diffstat (limited to 'remote/setup_target')
| -rwxr-xr-x | remote/setup_target | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/remote/setup_target b/remote/setup_target index 91e657e0..63869979 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -211,10 +211,12 @@ copy_files_with_deps () { local ENTRY="" for ENTRY in ${REQUIRED_DIRECTORIES}; do [[ "$ENTRY" == /* ]] || perror "All entries in REQUIRED_DIRECTORIES have to start with a slash '/', but $ENTRY does not!" + [ -e "$ENTRY" -a ! -d "$ENTRY" ] && perror "$ENTRY is not a directory" pdebug "* $ENTRY" ENTRY=".${ENTRY}" echo "${ENTRY}" >> "${COPYFILES_LIST}" for BIN in $(find "${ENTRY}" -type f -a \( -executable -o -name '*.so*' \) -a -not -name '*.a'); do + [ -f "$BIN" ] || continue #pdebug "\tSearching libs for ${BIN}..." get_link_chain "${MODULE_BUILD_DIR}/${BIN}" "${MODULE_BUILD_DIR}" >> "${COPYFILES_LIST}" get_dynamic_dependencies -l "${MODULE_BUILD_DIR}" "${BIN}" >> "${COPYFILES_LIST}" |
