Skip to content

Commit be3ca90

Browse files
committed
berks3 support
1 parent ab0f1e4 commit be3ca90

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ LAST_COMMIT_AUTHOR=$(git log --pretty=format:'%an' -n1)
88
BRANCH_NAME=$(echo $GIT_BRANCH|sed -e 's/origin\///g')
99
COMMIT_MESSAGE=$(git log --format=%B -n1)
1010
VERSION=$(echo $COMMIT_MESSAGE|grep -o 'version:.*'|cut -d: -f2|sed -e 's/^[ \t]*//g;s/[ \t].*$//g')
11+
BERKS_VERSION=$(berks version |head -1|sed -e 's/^.*(//g;s/).*$//g'|awk -F "." '{print $1}')
1112

1213
function check {
1314
"$@"
@@ -23,7 +24,11 @@ function berks_install {
2324
local INSTALL_PATH=$1
2425

2526
berks -d
26-
berks install -p ${INSTALL_PATH}
27+
if [ $BERKS_VERSION -eq 2 ]; then
28+
berks install -p ${INSTALL_PATH}
29+
elif [ $BERKS_VERSION -eq 3 ]; then
30+
berks vendor ${INSTALL_PATH}
31+
fi
2732
}
2833

2934
function package {

0 commit comments

Comments
 (0)