mirror of
https://github.com/nmattia/niv.git
synced 2024-11-29 09:42:35 +03:00
19 lines
324 B
Plaintext
Executable File
19 lines
324 B
Plaintext
Executable File
#!/usr/bin/env nix-shell
|
|
#!nix-shell -i bash
|
|
#!nix-shell -I nixpkgs=./nix
|
|
#!nix-shell -p nix
|
|
#!nix-shell --keep GITHUB_TOKEN
|
|
|
|
set -euo pipefail
|
|
|
|
echo "Updating README"
|
|
|
|
cat $(nix-build -A readme) > README.md
|
|
|
|
if [ $# -gt 0 ] && [ $1 == "svg" ]; then
|
|
echo "Updating niv.svg"
|
|
$(nix-build -A niv-svg-gen)
|
|
fi
|
|
|
|
echo done
|