Skip to content

Commit

Permalink
feat: update besu/teku update.sh scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aldoborrero authored and selfuryon committed Oct 30, 2024
1 parent 55111d1 commit 66c420d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkgs/besu/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

set -e

dirname="${PRJ_ROOT/pkgs/besu/:-$(dirname "$0")}"
rootDir="$(git -C "$dirname" rev-parse --show-toplevel)"
pname="besu"
dirname="$(dirname "$0")"
rootDir="$(git -C "$dirname" rev-parse --show-toplevel)"

updateVersion() {
local version=$1
Expand All @@ -15,7 +15,7 @@ updateVersion() {
updateHash() {
local version=$1
local url="https://hyperledger.jfrog.io/hyperledger/${pname}-binaries/${pname}/${version}/${pname}-${version}.tar.gz"
local sriHash=$(nix store prefetch-file --json "$url" | jq -r .hash)
local sriHash=$(nix store prefetch-file --json "$url" | jq -r '.hash')
sd 'hash = "[a-zA-Z0-9/+-=]*";' "hash = \"$sriHash\";" "${dirname}/default.nix"
}

Expand Down
2 changes: 1 addition & 1 deletion pkgs/teku/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

pname="teku"
dirname="${PRJ_ROOT/pkgs/${pname}/:-$(dirname "$0")}"
dirname="$(dirname "$0")}"
rootDir="$(git -C "$dirname" rev-parse --show-toplevel)"

updateVersion() {
Expand Down

0 comments on commit 66c420d

Please sign in to comment.