diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-09-25 14:22:43 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2017-09-27 13:15:18 +0000 |
commit | 5d5d388e9894c575ecc982caf78e957dab9875d2 (patch) | |
tree | 22019905c2d8552bf6d5b6d1fee7be1169aa3aae | |
parent | 76f19157a2a9313e1c8482388d5fe3553eb404dc (diff) | |
download | buildstream-75-source-bundle-generated-script-fails-when-a-build-element-has-no-source.tar.gz |
build-module.sh.in: Don't attempt to copy empty sources75-source-bundle-generated-script-fails-when-a-build-element-has-no-source
-rw-r--r-- | buildstream/data/build-module.sh.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/buildstream/data/build-module.sh.in b/buildstream/data/build-module.sh.in index d67ee9a9e..6e9ea4552 100644 --- a/buildstream/data/build-module.sh.in +++ b/buildstream/data/build-module.sh.in @@ -23,7 +23,9 @@ fi mkdir -p '{build_root}' mkdir -p '{install_root}' -cp -a "$SRCDIR/{name}/." '{build_root}' +if [ -d "$SRCDIR/{name}/" ]; then + cp -a "$SRCDIR/{name}/." '{build_root}' +fi cd '{build_root}' export PREFIX='{install_root}' |