Skip to content

Commit 907f780

Browse files
committed
skip package for components without cookbooks
1 parent e40f558 commit 907f780

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

build.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ function berks_install {
3333

3434
function package {
3535
local REVISION=$1
36+
if [ -d berks/ ]; then
37+
berks_install berks/cookbooks
38+
cd berks
3639

37-
berks_install berks/cookbooks
38-
cd berks
40+
tar -czf ${REPO_NAME}-cookbooks-${REVISION}.tar.gz cookbooks
3941

40-
tar -czf ${REPO_NAME}-cookbooks-${REVISION}.tar.gz cookbooks
41-
42-
cd ../
43-
mv berks/${REPO_NAME}-cookbooks-${REVISION}.tar.gz ${REPO_NAME}-cookbooks-${REVISION}.tar.gz
42+
cd ../
43+
mv berks/${REPO_NAME}-cookbooks-${REVISION}.tar.gz ${REPO_NAME}-cookbooks-${REVISION}.tar.gz
44+
fi
4445
}
4546

4647
function publish {

0 commit comments

Comments
 (0)