Skip to content

Commit 11a38f8

Browse files
authored
Merge pull request #10 from framps/minInstallUpdate
Corrected installer download url in message
2 parents 966b2b2 + c1c6fcd commit 11a38f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

install

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ set -uo pipefail
2121

2222
readonly PACKAGE="rpi-clone"
2323
readonly DOWNLOAD_REPOSITORY="https://raw.githubusercontent.com/geerlingguy/rpi-clone/master"
24-
readonly DOWNLOAD_REPOSITORY_4_MESSAGE="$(sed 's@/master@@' <<< "$DOWNLOAD_REPOSITORY")"
2524
readonly FILES_2_DOWNLOAD"=rpi-clone rpi-clone-setup"
2625
readonly TMP_DIR=$(mktemp -d)
2726
readonly INSTALLATION_DIR="/usr/local/sbin"
@@ -35,7 +34,7 @@ echo "Installing $PACKAGE ..."
3534

3635
for file in $FILES_2_DOWNLOAD; do
3736

38-
echo -n "Downloading $file from $DOWNLOAD_REPOSITORY_4_MESSAGE ... "
37+
echo -n "Downloading $file from $DOWNLOAD_REPOSITORY/$file ... "
3938
http_code=$(curl -w "%{http_code}" -L -s $DOWNLOAD_REPOSITORY/$file -o $file)
4039
(( $? )) && { echo "Curl failed"; exit 1; }
4140
[[ $http_code != 200 ]] && { echo "http request failed with $http_code"; exit 1; }

0 commit comments

Comments
 (0)