summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Vladović <d.vladimyr@gmail.com>2021-04-08 19:42:45 +0200
committerGitHub <noreply@github.com>2021-04-08 19:42:45 +0200
commitea35359a0923cdee05485b2e9564be406fe6a20d (patch)
tree9d55938596dac8636858bff36d4f9f04b0f96e91
parent7a0046ed58803bc81008c7fbf1a37ef00ccfb7f2 (diff)
docs: update install instructions (#2553)
Use POSIX `sh`, mitigate possible timing attacks.
-rw-r--r--README.md2
-rw-r--r--docs/README.md2
-rw-r--r--docs/faq/README.md4
-rw-r--r--docs/installing/README.md2
4 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index dfc3fdfa6..25409db1b 100644
--- a/README.md
+++ b/README.md
@@ -157,7 +157,7 @@ shown below. Can't see yours? Have a look at the [extra platform instructions](h
##### From prebuilt binary, with Shell:
```sh
- curl -fsSL https://starship.rs/install.sh | bash
+ sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
diff --git a/docs/README.md b/docs/README.md
index 355366542..b2937eef8 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -35,7 +35,7 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
With Shell:
```sh
- curl -fsSL https://starship.rs/install.sh | bash
+ sh -c "$(curl -fsSL https://starship.rs/install.sh)"
```
To update the Starship itself, rerun the above script. It will replace the current version without touching Starship's configuration.
diff --git a/docs/faq/README.md b/docs/faq/README.md
index c073888d2..2b2db7cd2 100644
--- a/docs/faq/README.md
+++ b/docs/faq/README.md
@@ -53,7 +53,7 @@ The prompt will use as much context as is provided, but no flags are "required".
If you get an error like "_version 'GLIBC_2.18' not found (required by starship)_" when using the prebuilt binary (for example, on CentOS 6 or 7), you can use a binary compiled with `musl` instead of `glibc`:
```sh
-curl -fsSL https://starship.rs/install.sh | bash -s -- --platform unknown-linux-musl
+sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --platform unknown-linux-musl
```
## I see symbols I don't understand or expect, what do they mean?
@@ -97,7 +97,7 @@ Starship is just as easy to uninstall as it is to install in the first place.
If Starship was installed using a package manager, please refer to their docs for uninstallation instructions.
-If Starship was installed using the `curl | bash` script, the following command will delete the binary:
+If Starship was installed using the install script, the following command will delete the binary:
```sh
# Locate and delete the starship binary
diff --git a/docs/installing/README.md b/docs/installing/README.md
index de6366d86..a6d7cd866 100644
--- a/docs/installing/README.md
+++ b/docs/installing/README.md
@@ -36,7 +36,7 @@ pkg install getconf
### Installation
```sh
-curl -fsSL https://starship.rs/install.sh | bash -s -- -b /data/data/com.termux/files/usr/bin
+sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --bin-dir /data/data/com.termux/files/usr/bin
```
## [Nix](https://nixos.wiki/wiki/Nix)