mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
12 lines
306 B
Bash
12 lines
306 B
Bash
|
#!/usr/bin/env nix-shell
|
||
|
#!nix-shell -i bash
|
||
|
set -euo pipefail
|
||
|
mv netlify-cli.json{,.old}
|
||
|
nix-prefetch-github-latest-release netlify cli >netlify-cli.json
|
||
|
|
||
|
if ! diff -U3 netlify-cli.json{.old,}; then
|
||
|
echo New version detected\; generating expressions...
|
||
|
./generate.sh
|
||
|
fi
|
||
|
rm -f netlify-cli.json.old
|