From b07b8597061aeaf7cae257c4b8be5e44e2f0e333 Mon Sep 17 00:00:00 2001 From: Cosimo Matteini Date: Tue, 7 Jan 2025 23:47:21 +0100 Subject: [PATCH] install+docs: add script to README (#263) --- README.md | 8 ++++++++ install.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 424ff03..ea57282 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,14 @@ You can do everything `dra` does with the official [GitHub cli](https://cli.gith Download the prebuilt versions of `dra` for all supported platforms from the [latest release](https://github.com/devmatteini/dra/releases/latest). +You can use this script to automatically download the latest release across all supported platforms. +Replace `` with the path where you want to place dra (e.g `~/.local/bin`). +If you omit `--to` option, the default value is the current working directory. + +```shell +curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/devmatteini/dra/refs/heads/main/install.sh | bash -s -- --to +``` + ### Debian-based distributions Download the latest `.deb` package from the [release page](https://github.com/devmatteini/dra/releases/latest) and diff --git a/install.sh b/install.sh index cfa2aaf..e0917e2 100755 --- a/install.sh +++ b/install.sh @@ -138,7 +138,7 @@ FLAGS: -h, --help Display this message OPTIONS: - --to LOCATION Save dra to custom path [default: current working directory] + --to Save dra to custom path [default: current working directory] EOF }