We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab0f1e4 commit be3ca90Copy full SHA for be3ca90
build.sh
@@ -8,6 +8,7 @@ LAST_COMMIT_AUTHOR=$(git log --pretty=format:'%an' -n1)
8
BRANCH_NAME=$(echo $GIT_BRANCH|sed -e 's/origin\///g')
9
COMMIT_MESSAGE=$(git log --format=%B -n1)
10
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}')
12
13
function check {
14
"$@"
@@ -23,7 +24,11 @@ function berks_install {
23
24
local INSTALL_PATH=$1
25
26
berks -d
- 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
32
}
33
34
function package {
0 commit comments