Skip to content

Commit 863081c

Browse files
committed
A couple more tweaks for installing with curl sudo bash.
1 parent 9892434 commit 863081c

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ only Debian packages with apt-get.
4646

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

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

docs/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ Destinations include:
1919
Install `rpi-clone`:
2020

2121
```
22-
git clone https://github.com/geerlingguy/rpi-clone.git
23-
cd rpi-clone
24-
sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
22+
curl https://raw.githubusercontent.com/geerlingguy/rpi-clone/master/install | sudo bash
2523
```
2624

25+
> Alternatively, you can manually install from source if you don't trust the `curl | sudo bash` install script:
26+
>
27+
> ```
28+
> git clone https://github.com/geerlingguy/rpi-clone.git
29+
> cd rpi-clone
30+
> sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
31+
> ```
32+
2733
If booting off an internal microSD card, clone to an external USB drive:
2834
2935
```

install

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
set -uo pipefail
2121

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

0 commit comments

Comments
 (0)