We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
install.sh
wget
1 parent ee33e8a commit a338c03Copy full SHA for a338c03
install.sh
@@ -68,10 +68,16 @@ set -u # error on use of undefined variable
68
FETCH=$(get_fetch_command)
69
if [ $? -ne 0 ]; then
70
echo "No download mechanism found. Install curl or wget first."
71
- exit 1
+ exit 2
72
+fi
73
+
74
+LATEST_RELEASE=$(get_latest_release "fortran-lang/fpm" "$FETCH")
75
76
+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
79
fi
80
-LATEST_RELEASE=$(get_latest_release "fortran-lang/fpm" $FETCH)
81
SOURCE_URL="https://github.com/fortran-lang/fpm/releases/download/v${LATEST_RELEASE}/fpm-${LATEST_RELEASE}.F90"
82
BOOTSTRAP_DIR="build/bootstrap"
83
0 commit comments