diff --git a/pkgs/besu/update.sh b/pkgs/besu/update.sh index e7dbf176..fac436cb 100644 --- a/pkgs/besu/update.sh +++ b/pkgs/besu/update.sh @@ -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 @@ -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" } diff --git a/pkgs/teku/update.sh b/pkgs/teku/update.sh index 804c20b7..0575b223 100755 --- a/pkgs/teku/update.sh +++ b/pkgs/teku/update.sh @@ -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() {