Skip to content

Commit 5ea1b6f

Browse files
authored
Merge pull request #895 from input-output-hk/fix-update-nix
Filter out repeated log lines
2 parents 6c4305e + 23d228e commit 5ea1b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update-nix.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fi
2525

2626
echo "Determining new sha for sbt build, this can take several minutes to do a 'sbt compile'"
2727

28-
NEW_SHA=$(nix-build -E 'with import ./. {}; deps.overrideAttrs( _: { outputHash = "0000000000000000000000000000000000000000000000000000"; })' 2>&1 | grep " got: " | sed -r 's/\s+got:\s+//' | xargs nix-hash --to-base32 --type sha256 )
28+
NEW_SHA=$(nix-build -E 'with import ./. {}; deps.overrideAttrs( _: { outputHash = "0000000000000000000000000000000000000000000000000000"; })' 2>&1 | grep " got: " | head -n 1 | sed -r 's/\s+got:\s+//' | xargs nix-hash --to-base32 --type sha256 )
2929

3030
echo "Calculated sha: $NEW_SHA"
3131

0 commit comments

Comments
 (0)