Skip to content

Commit 6abbde1

Browse files
committed
fallback to 0.8.0 if install.sh fails to fetch github
1 parent 2d9ef15 commit 6abbde1

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)