Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Using curl -L to properly handle redirections
Browse files Browse the repository at this point in the history
  • Loading branch information
GuLinux committed Nov 21, 2019
1 parent ae2db6a commit caf3f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/debian_based/astrophotoplus-deb-updater
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ get-installed-version() {
}

get-latest-info() {
curl -f -s "$RELEASES_URL"
curl -L -f -s "$RELEASES_URL"
}

get-latest-deb() {
Expand Down Expand Up @@ -53,7 +53,7 @@ run-updater() {
echo "Updating to package $@"
temp_deb_file="/tmp/$( basename "$1")"
cd /tmp
curl "$1" -o "$temp_deb_file"
curl -L "$1" -o "$temp_deb_file"
apt install -y "$temp_deb_file"
rm -f "$temp_deb_file"
echo "Your system will now reboot."
Expand Down

0 comments on commit caf3f80

Please sign in to comment.