depot/third_party/nixpkgs/pkgs/development/web/netlify-cli/update.sh
Default email a7848c7476 Project import generated by Copybara.
GitOrigin-RevId: 34ad3ffe08adfca17fcb4e4a47bb5f3b113687be
2021-10-17 11:34:42 +02:00

11 lines
306 B
Bash
Executable file

#!/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