From b0278f0d833e58fba7fd7bc16b5696f65b71b9c3 Mon Sep 17 00:00:00 2001 From: mrlutik Date: Sun, 23 Apr 2023 18:26:09 +0200 Subject: [PATCH 1/3] Add curl check to bu Will install if package not found --- bash-utils/bash-utils.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash-utils/bash-utils.sh b/bash-utils/bash-utils.sh index 7b60bd43..38f46f72 100644 --- a/bash-utils/bash-utils.sh +++ b/bash-utils/bash-utils.sh @@ -763,6 +763,11 @@ function safeWget() { return 1 fi + if (! $(isCommand curl)) ; then + echoINFO "INFO: Curl not installed. Installing..." + apt-get install curl -y || ( echoErr "Failed to install curl, missing dependency" && exit 1 ) + fi + if (! $(isSHA256 "$EXPECTED_HASH_FIRST")) ; then if ($(isCID "$EXPECTED_HASH_FIRST")) ; then echoInfo "INFO: Detected IPFS CID, searching available gatewys..." From b3ea4d59d637f649f77dd7ba347d064068e8ddce Mon Sep 17 00:00:00 2001 From: mrlutik Date: Sun, 23 Apr 2023 18:30:57 +0200 Subject: [PATCH 2/3] Update RELEASE.md --- RELEASE.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index 90e387ff..07d16176 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,5 +1,2 @@ Features: -* bip39gen: add integration test -* bip39gen: deprecate chacha20 -* bip39gen: fix bugs -* bip39gen: refactor prefix logic +* bu: add curl check From 635fe7cfc7ef1917d3ca022511767a608c7d5563 Mon Sep 17 00:00:00 2001 From: mrlutik Date: Sun, 23 Apr 2023 18:33:17 +0200 Subject: [PATCH 3/3] Change ver v0.3.45 -> v0.3.46 --- bash-utils/bash-utils.sh | 3 ++- bip39gen/cmd/version.go | 2 +- build-tools/update_version.py | 2 +- ipfs-api/README.md | 2 +- ipfs-api/types/constants.go | 2 +- scripts/version.sh | 2 +- validator-key-gen/README.md | 2 +- validator-key-gen/main.go | 2 +- 8 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bash-utils/bash-utils.sh b/bash-utils/bash-utils.sh index 38f46f72..19111252 100644 --- a/bash-utils/bash-utils.sh +++ b/bash-utils/bash-utils.sh @@ -26,7 +26,7 @@ function bashUtilsVersion() { # this is default installation script for utils # ./bash-utils.sh bashUtilsSetup "/var/kiraglob" function bashUtilsSetup() { - local BASH_UTILS_VERSION="v0.3.45" + local BASH_UTILS_VERSION="v0.3.46" local COSIGN_VERSION="v2.0.0" if [ "$1" == "version" ] ; then echo "$BASH_UTILS_VERSION" @@ -2321,3 +2321,4 @@ fi + diff --git a/bip39gen/cmd/version.go b/bip39gen/cmd/version.go index 2c9d46d5..0df9ecd5 100644 --- a/bip39gen/cmd/version.go +++ b/bip39gen/cmd/version.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" ) -const Bip39GenVersion = "v0.3.45" +const Bip39GenVersion = "v0.3.46" func cmdVersion(cmd *cobra.Command, args []string) error { fmt.Println(Bip39GenVersion) diff --git a/build-tools/update_version.py b/build-tools/update_version.py index 2d805765..4c4706c6 100644 --- a/build-tools/update_version.py +++ b/build-tools/update_version.py @@ -1,7 +1,7 @@ import re import sys -version = "v0.3.45" +version = "v0.3.46" if len(sys.argv) != 2: print("Usage: python3 update_version.py ") diff --git a/ipfs-api/README.md b/ipfs-api/README.md index bc43e767..5fc5b19b 100644 --- a/ipfs-api/README.md +++ b/ipfs-api/README.md @@ -5,7 +5,7 @@ A command-line interface (CLI) for interacting with the IPFS API, providing func To install the CLI, clone the repository and build the project using Go.= or dowload from existing release ``` -TOOLS_VERSION="v0.3.45" && rm -rfv /tmp/ipfs-api && \ +TOOLS_VERSION="v0.3.46" && rm -rfv /tmp/ipfs-api && \ safeWget /tmp/ipfs-api.deb "https://github.com/KiraCore/tools/releases/download/$TOOLS_VERSION/ipfs-api-$(getPlatform)-$(getArch).deb" "QmeqFDLGfwoWgCy2ZEFXerVC5XW8c5xgRyhK5bLArBr2ue" && \ dpkg-deb -x /tmp/ipfs-api.deb /tmp/ipfs-api && cp -fv "/tmp/ipfs-api/bin/ipfs-api" /usr/local/bin/ipfs-api && chmod -v 755 /usr/local/bin/ipfs-api && \ ipfs-api version diff --git a/ipfs-api/types/constants.go b/ipfs-api/types/constants.go index e8c11aaf..f59a0b37 100644 --- a/ipfs-api/types/constants.go +++ b/ipfs-api/types/constants.go @@ -1,7 +1,7 @@ package types const ( - IpfsApiVersion = "v0.3.45" + IpfsApiVersion = "v0.3.46" // Pinata v1 constants BASE_URL = "https://api.pinata.cloud" diff --git a/scripts/version.sh b/scripts/version.sh index a0a4f24f..c304e4ed 100644 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -echo "v0.3.45" +echo "v0.3.46" diff --git a/validator-key-gen/README.md b/validator-key-gen/README.md index 4128652c..477f1446 100644 --- a/validator-key-gen/README.md +++ b/validator-key-gen/README.md @@ -5,7 +5,7 @@ Validator Key Generator is a CLI tool that generates validator keys, node keys, ### Setup from binary file ```bash -TOOLS_VERSION="v0.3.45" +TOOLS_VERSION="v0.3.46" # Quick-Install bash-utils or see root repository README file for secure download FILE_NAME="bash-utils.sh" && \ diff --git a/validator-key-gen/main.go b/validator-key-gen/main.go index dbbefdab..d81b154f 100644 --- a/validator-key-gen/main.go +++ b/validator-key-gen/main.go @@ -18,7 +18,7 @@ import ( "github.com/tendermint/tendermint/privval" ) -const PrivValidatorKeyGenVersion = "v0.3.45" +const PrivValidatorKeyGenVersion = "v0.3.46" type Prefix struct { fullPath *hd.BIP44Params