Skip to content

Commit b5f033d

Browse files
authored
install.sh: fallback to 0.8.0 if in trouble fetching github (#913)
2 parents 2d9ef15 + 6abbde1 commit b5f033d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ fi
7373

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

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

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

0 commit comments

Comments
 (0)