@@ -14,21 +14,21 @@ set -u
14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- BUILD_ROOT=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd -P)
17
+ BUILD_ROOT=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd -P)
18
18
SHA256CMD=${SHA256CMD:- shasum -a 256}
19
19
20
20
DOCKERCMD=${DOCKERCMD:- docker}
21
21
22
22
export scriptdir
23
- scriptdir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
23
+ scriptdir=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
24
24
export OUTPUT_DIR=${BUILD_ROOT} /_output
25
25
export WORK_DIR=${BUILD_ROOT} /.work
26
26
export CACHE_DIR=${BUILD_ROOT} /.cache
27
27
export GOOS
28
28
GOOS=$( go env GOOS)
29
29
export GOARCH
30
30
GOARCH=$( go env GOARCH)
31
- DEFAULT_CSV_VERSION=" 4.15 .0"
31
+ DEFAULT_CSV_VERSION=" 4.16 .0"
32
32
CSV_VERSION=" ${CSV_VERSION:- ${DEFAULT_CSV_VERSION} } "
33
33
SKIP_RANGE=" ${SKIP_RANGE:- " " } "
34
34
REPLACES_CSV_VERSION=" ${REPLACES_CSV_VERSION:- " " } "
@@ -39,12 +39,12 @@ BUNDLE_IMAGE="${BUNDLE_IMAGE:-${DEFAULT_BUNDLE_IMAGE}}"
39
39
40
40
function ver() {
41
41
local full_ver maj min bug build
42
- full_ver=" $1 " # functions should name input params for easier understanding
42
+ full_ver=" $1 " # functions should name input params for easier understanding
43
43
maj=" $( echo " ${full_ver} " | cut -f1 -d' .' ) " # when splitting a param, name the components for easier understanding
44
44
min=" $( echo " ${full_ver} " | cut -f2 -d' .' ) "
45
45
bug=" $( echo " ${full_ver} " | cut -f3 -d' .' ) "
46
46
build=" $( echo " ${full_ver} " | cut -f4 -d' .' ) "
47
- printf " %d%03d%03d%03d" " ${maj} " " ${min} " " ${bug} " " ${build} "
47
+ printf " %d%03d%03d%03d" " ${maj} " " ${min} " " ${bug} " " ${build} "
48
48
}
49
49
50
50
function check_git() {
@@ -54,7 +54,7 @@ function check_git() {
54
54
local gitversion
55
55
gitversion=$( git --version | cut -d" " -f3)
56
56
57
- if (( $(ver "${gitversion} ") > $(ver 2 .6 .6 ) && $(ver "${gitversion} ") < $(ver 2 .8 .3 ) )) ; then
57
+ if (( $(ver "${gitversion} ") > $(ver 2 .6 .6 ) && $(ver "${gitversion} ") < $(ver 2 .8 .3 )) ); then
58
58
echo WARN: you are running git version " ${gitversion} " which has a bug related to relative
59
59
echo WARN: submodule paths. Please consider upgrading to 2.8.3 or later
60
60
fi
0 commit comments