File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ set -uo pipefail
21
21
22
22
readonly PACKAGE=" rpi-clone"
23
23
readonly DOWNLOAD_REPOSITORY=" https://raw.githubusercontent.com/geerlingguy/rpi-clone/master"
24
- readonly DOWNLOAD_REPOSITORY_4_MESSAGE=" $( sed ' s@/master@@' <<< " $DOWNLOAD_REPOSITORY" ) "
25
24
readonly FILES_2_DOWNLOAD" =rpi-clone rpi-clone-setup"
26
25
readonly TMP_DIR=$( mktemp -d)
27
26
readonly INSTALLATION_DIR=" /usr/local/sbin"
@@ -35,7 +34,7 @@ echo "Installing $PACKAGE ..."
35
34
36
35
for file in $FILES_2_DOWNLOAD ; do
37
36
38
- echo -n " Downloading $file from $DOWNLOAD_REPOSITORY_4_MESSAGE ... "
37
+ echo -n " Downloading $file from $DOWNLOAD_REPOSITORY / $file ... "
39
38
http_code=$( curl -w " %{http_code}" -L -s $DOWNLOAD_REPOSITORY /$file -o $file )
40
39
(( $? )) && { echo " Curl failed" ; exit 1; }
41
40
[[ $http_code != 200 ]] && { echo " http request failed with $http_code " ; exit 1; }
You can’t perform that action at this time.
0 commit comments