File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
Features:
2
2
3
- * fileFollow now shows more lines when starting
3
+ * auto-update cosign version
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function bashUtilsVersion() {
26
26
# this is default installation script for utils
27
27
# ./bash-utils.sh bashUtilsSetup "/var/kiraglob"
28
28
function bashUtilsSetup() {
29
- local BASH_UTILS_VERSION=" v0.3.40 "
29
+ local BASH_UTILS_VERSION=" v0.3.41 "
30
30
local COSIGN_VERSION=" v2.0.0"
31
31
if [ " $1 " == " version" ] ; then
32
32
echo " $BASH_UTILS_VERSION "
@@ -95,9 +95,9 @@ function bashUtilsSetup() {
95
95
bu echoInfo " INFO: SUCCESS!, Installed kira bash-utils $( bu bashUtilsVersion) "
96
96
fi
97
97
98
- COSIGN_INSTALLED =" $( timeout 30 cosign version && echo " true " || echo " false " ) "
99
- if [ " $COSIGN_INSTALLED " == " false " ] ; then
100
- bu echoWarn " WARNING: Cosign tool is not installed, setting up $COSIGN_VERSION ..."
98
+ OLD_COSIGN_VER =" $( timeout 30 cosign version --json 2>&1 | bu jsonParse " gitVersion " || echo " v0.0.0 " ) "
99
+ if [[ $( versionToNumber " $OLD_COSIGN_VER " ) -lt $( versionToNumber " $COSIGN_VERSION " ) ] ] ; then
100
+ bu echoWarn " WARNING: Cosign tool is not installed or requires update $OLD_COSIGN_VER -> $COSIGN_VERSION ..."
101
101
declare -l ARCH=" $( uname -m) "
102
102
[[ " $ARCH " == * " ar" * ]] && ARCH=" arm64" || ARCH=" amd64"
103
103
declare -l PLATFORM=" $( uname) "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- echo " v0.3.40 "
3
+ echo " v0.3.41 "
You can’t perform that action at this time.
0 commit comments