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.
1 parent d9dc9f2 commit b15db3cCopy full SHA for b15db3c
install.sh
@@ -52,7 +52,18 @@ if [ -z ${FFLAGS+x} ]; then
52
fi
53
54
mkdir -p $BOOTSTRAP_DIR
55
-curl -LJ $SOURCE_URL > $BOOTSTRAP_DIR/fpm.f90
+
56
+if command -v curl > /dev/null 2>&1; then
57
+ FETCH="curl -L"
58
+elif command -v wget > /dev/null 2>&1; then
59
+ FETCH="wget -O -"
60
+else
61
+ echo "No download mechanism found. Install curl or wget first."
62
+ exit 1
63
+fi
64
65
+$FETCH $SOURCE_URL > $BOOTSTRAP_DIR/fpm.f90
66
67
$FC $FFLAGS -J $BOOTSTRAP_DIR $BOOTSTRAP_DIR/fpm.f90 -o $BOOTSTRAP_DIR/fpm
68
69
$BOOTSTRAP_DIR/fpm install --compiler "$FC" --flag "$FFLAGS" --prefix "$PREFIX"
0 commit comments