Created
July 24, 2019 07:30
-
-
Save steshaw/6e6e5e7115c4667930d06bf48ac7e836 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
current=$(git rev-parse --abbrev-ref HEAD) | |
git checkout --quiet "${current}^" | |
before=$(nix path-info -S -f . linkchecker | tee /dev/tty | awk '{print $2}') | |
git checkout --quiet "${current}" | |
after=$(nix path-info -S -f . linkchecker | tee /dev/tty | awk '{print $2}') | |
echo "closure difference = $((after - before))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment