From 3984323bd352dd0f4fb2d26898ab68b527581dae Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 14 Jun 2013 13:36:01 +0200 Subject: [PATCH] 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 --- sdk/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/build.sh b/sdk/build.sh index 94ce63729..b704a9129 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -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. - find ${1}/images -type l -delete + if [ -d "${1}/images" ]; then + find ${1}/images -type l -delete + fi } # Sanity check (Jenkins environment)