Skip to content

Commit

Permalink
Merge pull request #10 from framps/minInstallUpdate
Browse files Browse the repository at this point in the history
Corrected installer download url in message
  • Loading branch information
geerlingguy authored Mar 10, 2024
2 parents 966b2b2 + c1c6fcd commit 11a38f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ set -uo pipefail

readonly PACKAGE="rpi-clone"
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 All @@ -35,7 +34,7 @@ echo "Installing $PACKAGE ..."

for file in $FILES_2_DOWNLOAD; do

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

0 comments on commit 11a38f8

Please sign in to comment.