tools/mksymtab.sh: suppress 'find apps/bin' No such file or directory error msg

Suppress apache nightly build find error msg as below:
find: '/home/jenkins/jenkins-slave/workspace/NuttX-Nightly-Build/apps/bin': No such file or directory

Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
This commit is contained in:
liuhaitao 2020-05-15 17:49:20 +08:00 committed by patacongo
parent 79e544f032
commit 994af95576

View File

@ -63,7 +63,7 @@ rm -f $outfile
# Extract all of the undefined symbols from the ELF files and create a
# list of sorted, unique undefined variable names.
execlist=`find ${dir} -type f`
execlist=`find ${dir} -type f 2>/dev/null`
if [ ! -z "${execlist}" ]; then
for exec in ${execlist}; do
nm $exec | fgrep ' U ' | sed -e "s/^[ ]*//g" | cut -d' ' -f2 >>_tmplist