From 09d6e876df1711ea2d152468a81e63b6b15f96e4 Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Sun, 22 Sep 2019 09:32:42 +0200 Subject: [PATCH] Fix typos --- README.md | 5 +---- README.tpl.md | 5 +---- script/gen | 8 +++++++- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5f43cbe..1b4f7fb 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,6 @@ necessary for fetching and updating the packages. `nix/sources.nix` file that returns the sources as a Nix object. * [Show](#show): shows the packages' information. -The next two sections cover [common use cases](#getting-started) and [full command -description](#commands). - ### Configuration The following environment variables are read by `niv`: @@ -58,7 +55,7 @@ The following environment variables are read by `niv`: | GITHUB_TOKEN | When set, the value is used to authenticate GitHub API requests. | | GITHUB_HOST | The GitHub host to use when fetching packages. Port may be appended here. | | GITHUB_API_HOST | The host used when performing GitHub API requests. Use `GITHUB_API_PORT` for specifying the port. | -| GITHUB_API_PORT | The port used when performing GitHub API requests. Defauts to `443` for secure requests. Defaults to `80` for insecure requests. See also: `GITHUB_SECURE`. | +| GITHUB_API_PORT | The port used when performing GitHub API requests. Defaults to `443` for secure requests. Defaults to `80` for insecure requests. See also: `GITHUB_INSECURE`. | | GITHUB_INSECURE | When set to anything but the empty string, requests are performed over `http` instead of `https`. | | GITHUB_PATH | The base path used when performing GitHub API requests. | diff --git a/README.tpl.md b/README.tpl.md index 15bb4f7..951b1ee 100644 --- a/README.tpl.md +++ b/README.tpl.md @@ -46,9 +46,6 @@ necessary for fetching and updating the packages. `nix/sources.nix` file that returns the sources as a Nix object. * [Show](#show): shows the packages' information. -The next two sections cover [common use cases](#getting-started) and [full command -description](#commands). - ### Configuration The following environment variables are read by `niv`: @@ -58,7 +55,7 @@ The following environment variables are read by `niv`: | GITHUB_TOKEN | When set, the value is used to authenticate GitHub API requests. | | GITHUB_HOST | The GitHub host to use when fetching packages. Port may be appended here. | | GITHUB_API_HOST | The host used when performing GitHub API requests. Use `GITHUB_API_PORT` for specifying the port. | -| GITHUB_API_PORT | The port used when performing GitHub API requests. Defauts to `443` for secure requests. Defaults to `80` for insecure requests. See also: `GITHUB_SECURE`. | +| GITHUB_API_PORT | The port used when performing GitHub API requests. Defaults to `443` for secure requests. Defaults to `80` for insecure requests. See also: `GITHUB_INSECURE`. | | GITHUB_INSECURE | When set to anything but the empty string, requests are performed over `http` instead of `https`. | | GITHUB_PATH | The base path used when performing GitHub API requests. | diff --git a/script/gen b/script/gen index 6403d18..287a8cc 100755 --- a/script/gen +++ b/script/gen @@ -11,4 +11,10 @@ set -euo pipefail echo "Updating README" cat $(nix-build -A readme) > README.md -#$(nix-build -A niv-svg-gen) + +if [ $# -gt 0 ] && [ $1 == "svg" ]; then + echo "Updating niv.svg" + $(nix-build -A niv-svg-gen) +fi + +echo done