diff options
author | 2017-07-19 11:19:10 +0000 | |
---|---|---|
committer | 2017-07-19 11:19:10 +0000 | |
commit | dd9639aa9605e0cf9f65f9658c4e722c3f90ecf2 (patch) | |
tree | 8d8e2d033cde45742351e992ca3c5b5b7f7a5d7c /jjb/common | |
parent | 507096581f8659477bc51a934470d32a002901d8 (diff) | |
parent | 13ad0bcde55d095fd0611881841627a55c3211a3 (diff) |
Merge "jjb/common: run-test-rsync: fix empty variables"
Diffstat (limited to 'jjb/common')
-rw-r--r-- | jjb/common/include-agl-run-test-rsync-changeid.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/jjb/common/include-agl-run-test-rsync-changeid.sh b/jjb/common/include-agl-run-test-rsync-changeid.sh index 64165553..be3f68bb 100644 --- a/jjb/common/include-agl-run-test-rsync-changeid.sh +++ b/jjb/common/include-agl-run-test-rsync-changeid.sh @@ -25,9 +25,12 @@ cd output pwd ls -alhR tmp/deploy/images -# copy files to $DEST +# copy files to $DEST (only if variable is non-empty) for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT; do - eval cp -avL tmp/deploy/images/${TARGETMACHINE}/$(echo "$"${i}) ${DEST}/ + FILE=$(eval echo \$${i}) + if [ -n "$FILE" ]; then + cp -avL tmp/deploy/images/${TARGETMACHINE}/${FILE} ${DEST}/ + fi done tree $DEST |