build.sh: Fix error when building targets without images.

Some targets, like meta-toolchain, will not create a tmp/deploy/images
folder.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2013-06-14 13:36:01 +02:00
parent 65ed973d18
commit 3984323bd3
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,9 @@ copy_images() {
# Jenkins artifact archiver does not copy symlinks, so remove them
# beforehand to avoid ending up with several duplicates of the same
# files.
if [ -d "${1}/images" ]; then
find ${1}/images -type l -delete
fi
}
# Sanity check (Jenkins environment)