Skip to content

Commit

Permalink
Mitigate unformatted output of wget2 with Fedora 40
Browse files Browse the repository at this point in the history
Fedora 40 uses wget2 as drop-in-replacement for wget.

Fixes #79
  • Loading branch information
Gemba authored Jul 23, 2024
1 parent 0e3fa5d commit 54dfad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_skyscraper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

{
LATEST=$(wget -q -O - "https://api.github.com/repos/Gemba/skyscraper/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
LATEST=$(wget -q -O - "https://api.github.com/repos/Gemba/skyscraper/releases/latest" | python3 -c 'import sys; import json; print(json.loads(sys.stdin.read())["tag_name"])')
[[ -z "$LATEST" ]] && printf '%s\n' "--- Remote server unreachable. Check internet connectivity. Exiting. ---" && exit 1

handle_error() {
Expand Down

0 comments on commit 54dfad5

Please sign in to comment.