Skip to content

Commit

Permalink
A couple more tweaks for installing with curl sudo bash.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Feb 13, 2024
1 parent 9892434 commit 863081c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ only Debian packages with apt-get.

#### On a Raspberry Pi:
```
$ curl https://github.com/geerlingguy/rpi-clone/blob/master/install | sudo bash
$ curl https://raw.githubusercontent.com/geerlingguy/rpi-clone/master/install | sudo bash
```

> Alternatively, you can manually install from source if you don't trust the `curl | sudo bash` install script:
Expand Down
12 changes: 9 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ Destinations include:
Install `rpi-clone`:

```
git clone https://github.com/geerlingguy/rpi-clone.git
cd rpi-clone
sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
curl https://raw.githubusercontent.com/geerlingguy/rpi-clone/master/install | sudo bash
```

> Alternatively, you can manually install from source if you don't trust the `curl | sudo bash` install script:

This comment has been minimized.

Copy link
@framps

framps Feb 19, 2024

Great comment 👍 I first hesitated to pipe the install script into sudo but because the script is small and can be reviewed very quickly I finally decided to use the pipe. It's a much more convenient way to install rpi-clone.

>
> ```
> git clone https://github.com/geerlingguy/rpi-clone.git
> cd rpi-clone
> sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
> ```
If booting off an internal microSD card, clone to an external USB drive:
```
Expand Down
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
set -uo pipefail

readonly PACKAGE="rpi-clone"
readonly DOWNLOAD_REPOSITORY="https://github.com/geerlingguy/rpi-clone/blob/master"
readonly DOWNLOAD_REPOSITORY_4_MESSAGE="$(sed 's@/blob/master@@' <<< "$DOWNLOAD_REPOSITORY")"
readonly DOWNLOAD_REPOSITORY="https://raw.githubusercontent.com/geerlingguy/rpi-clone/master"
readonly DOWNLOAD_REPOSITORY_4_MESSAGE="$(sed 's@/master@@' <<< "$DOWNLOAD_REPOSITORY")"
readonly FILES_2_DOWNLOAD"=rpi-clone rpi-clone-setup"
readonly TMP_DIR=$(mktemp -d)
readonly INSTALLATION_DIR="/usr/local/sbin"
Expand Down

0 comments on commit 863081c

Please sign in to comment.