Skip to content

Commit f29ca51

Browse files
committed
fix: add $PRJ_ROOT to teku update script
1 parent 055f803 commit f29ca51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkgs/teku/update.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/usr/bin/env nix-shell
22
#!nix-shell -i bash -p curl jq nix sd
33

4-
set -ex
4+
set -e
55

6-
dirname="$(dirname "$0")"
7-
rootDir="$(git -C "$dirname" rev-parse --show-toplevel)"
86
pname="teku"
7+
dirname="${PRJ_ROOT/pkgs/${pname}/:-$(dirname "$0")}"
8+
rootDir="$(git -C "$dirname" rev-parse --show-toplevel)"
99

1010
updateVersion() {
1111
local version=$1

0 commit comments

Comments
 (0)