Document install new flags in README.md (#844) [skip ci]

This commit is contained in:
Thiago Kenji Okada 2021-05-14 16:27:53 -03:00 committed by GitHub
parent c39d4bc320
commit e4d5988921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,16 +200,34 @@ $ ./install --dir .
To install a specific version, the script also supports `--version`:
``` shell
$ ./install --dir . --version 0.2.5
$ ./install --dir . --version 0.4.1
```
To force the download of the zip archive to a different directory than `/tmp`
use the `--download-dir` argument:
``` shell
$ ./install --dir . --version 0.2.5 --download-dir .
$ ./install --dir . --version 0.4.1 --download-dir .
```
On Linux, if you want to install the static binary version:
``` shell
$ ./install --dir . --version 0.4.1 --download-dir . --static
```
In case you want to check the download, you can use the `--checksum` option.
This maybe useful for unattended installations:
``` shell
$ sha256sum babashka-0.4.1-linux-amd64-static.tar.gz
ab70fb39fdbb5206c0a2faab178ffb54dd9597991a4bc13c65df2564e8f174f6 babashka-0.4.1-linux-amd64-static.tar.g
$ ./install --dir /tmp --checksum ab70fb39fdbb5206c0a2faab178ffb54dd9597991a4bc13c65df2564e8f174f6 --static --version 0.4.1
```
Note that the `--checksum` option only works when `--version` option is also
provided. This is to avoid breakage when a new version of Babashka is released.
### Github releases
You may also download a binary from