summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remote/tools/base/base.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/tools/base/base.build b/remote/tools/base/base.build
index 2a1a811c..91cbfa3f 100644
--- a/remote/tools/base/base.build
+++ b/remote/tools/base/base.build
@@ -16,7 +16,9 @@ build() {
for BIN in ${REQUIRED_BINARIES}
do
- echo $(which ${BIN}) >> ${FILELIST}
+ BIN_LOCATION=$(which ${BIN})
+ [ -e ${BIN_LOCATION} ] && echo ${BIN_LOCATION} >> ${FILELIST}
+ [ -L ${BIN_LOCATION} ] && echo $(readlink ${BIN_LOCATION}) >> ${FILELIST}
done
for LIB in ${REQUIRED_LIBRARIES}