Skip to content

install.sh: fallback to 0.8.0 if in trouble fetching github #913

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ fi

LATEST_RELEASE=$(get_latest_release "fortran-lang/fpm" "$FETCH")

# Fallback to a latest known release if network timeout
if [ -z "$LATEST_RELEASE" ]; then
echo "Could not fetch the latest release from GitHub. Install curl or wget, and ensure network connectivity."
exit 3
LATEST_RELEASE="0.8.0"
fi

SOURCE_URL="https://github.com/fortran-lang/fpm/releases/download/v${LATEST_RELEASE}/fpm-${LATEST_RELEASE}.F90"
Expand Down