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:
parent
65ed973d18
commit
3984323bd3
|
|
@ -60,7 +60,9 @@ copy_images() {
|
||||||
# Jenkins artifact archiver does not copy symlinks, so remove them
|
# Jenkins artifact archiver does not copy symlinks, so remove them
|
||||||
# beforehand to avoid ending up with several duplicates of the same
|
# beforehand to avoid ending up with several duplicates of the same
|
||||||
# files.
|
# files.
|
||||||
|
if [ -d "${1}/images" ]; then
|
||||||
find ${1}/images -type l -delete
|
find ${1}/images -type l -delete
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sanity check (Jenkins environment)
|
# Sanity check (Jenkins environment)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue