Skip to content

Commit 0b6b92b

Browse files
authored
Merge pull request #252 from KiraCore/release/v0.3.41
2 parents b91b8fe + 653b1e6 commit 0b6b92b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Features:
22

3-
* fileFollow now shows more lines when starting
3+
* auto-update cosign version

bash-utils/bash-utils.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function bashUtilsVersion() {
2626
# this is default installation script for utils
2727
# ./bash-utils.sh bashUtilsSetup "/var/kiraglob"
2828
function bashUtilsSetup() {
29-
local BASH_UTILS_VERSION="v0.3.40"
29+
local BASH_UTILS_VERSION="v0.3.41"
3030
local COSIGN_VERSION="v2.0.0"
3131
if [ "$1" == "version" ] ; then
3232
echo "$BASH_UTILS_VERSION"
@@ -95,9 +95,9 @@ function bashUtilsSetup() {
9595
bu echoInfo "INFO: SUCCESS!, Installed kira bash-utils $(bu bashUtilsVersion)"
9696
fi
9797

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..."
101101
declare -l ARCH="$(uname -m)"
102102
[[ "$ARCH" == *"ar"* ]] && ARCH="arm64" || ARCH="amd64"
103103
declare -l PLATFORM="$(uname)"

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
echo "v0.3.40"
3+
echo "v0.3.41"

0 commit comments

Comments
 (0)