Skip to content

Commit 3d5d52f

Browse files
committed
curl -fsSL
1 parent 9bc8b94 commit 3d5d52f

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/scripts/cygwin.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ md %CYGWIN_ROOT%
8383
:: Download the required setup program: the mingw-w64 compilers are only
8484
:: installed with Cygwin64.
8585
if "%1" equ "x86_64-pc-cygwin" (
86-
curl -sLo %CYGWIN_ROOT%\setup.exe https://cygwin.com/setup-x86_64.exe
86+
curl -fsSLo %CYGWIN_ROOT%\setup.exe https://cygwin.com/setup-x86_64.exe
8787
set CYGWIN_PACKAGES=,mingw64-i686-gcc-core=14.3.0-0.1,mingw64-x86_64-gcc-core=14.3.0-0.1,mingw64-i686-gcc-g++=14.3.0-0.1,mingw64-x86_64-gcc-g++=14.3.0-0.1
8888
) else (
89-
curl -sLo %CYGWIN_ROOT%\setup.exe https://cygwin.com/setup-x86.exe
89+
curl -fsSLo %CYGWIN_ROOT%\setup.exe https://cygwin.com/setup-x86.exe
9090
set CYGWIN_PACKAGES=
9191
)
9292

.github/scripts/main/ocaml-cache.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ esac
4242
FLEXDLL_VERSION=0.43
4343
MINGW_W64_VERSION=12.0.0
4444

45-
curl -sLO "https://github.com/ocaml/ocaml/archive/refs/tags/${OCAML_VERSION}.tar.gz" || \
46-
curl -sLO "https://github.com/ocaml/ocaml/archive/refs/heads/${OCAML_VERSION}.tar.gz"
45+
curl -fsSLO "https://github.com/ocaml/ocaml/archive/refs/tags/${OCAML_VERSION}.tar.gz" || \
46+
curl -fsSLO "https://github.com/ocaml/ocaml/archive/refs/heads/${OCAML_VERSION}.tar.gz"
4747
if [[ $PLATFORM = 'Windows' ]] ; then
48-
curl -sLO "https://github.com/ocaml/flexdll/archive/refs/tags/$FLEXDLL_VERSION.tar.gz"
49-
curl -sLO "https://github.com/mingw-w64/mingw-w64/archive/refs/tags/v${MINGW_W64_VERSION}.tar.gz"
48+
curl -fsSLO "https://github.com/ocaml/flexdll/archive/refs/tags/$FLEXDLL_VERSION.tar.gz"
49+
curl -fsSLO "https://github.com/mingw-w64/mingw-w64/archive/refs/tags/v${MINGW_W64_VERSION}.tar.gz"
5050
fi
5151

5252
tar -xzf "$OCAML_VERSION.tar.gz"
@@ -62,7 +62,7 @@ esac
6262

6363
cd "ocaml-$OCAML_VERSION"
6464
for sha in $PATCHES; do
65-
curl -sL "https://github.com/ocaml/ocaml/commit/$sha.patch" -o "../$sha.patch"
65+
curl -fsSL "https://github.com/ocaml/ocaml/commit/$sha.patch" -o "../$sha.patch"
6666
patch -p1 -i "../$sha.patch"
6767
done
6868

@@ -98,7 +98,7 @@ if [[ $OPAM_TEST -ne 1 ]] ; then
9898
if [[ -e configure.ac ]]; then
9999
CONFIGURE_SWITCHES="--disable-debugger --disable-debug-runtime --disable-ocamldoc --disable-installing-bytecode-programs --disable-installing-source-artifacts"
100100
if [[ $OCAML_BRANCH -eq 408 ]]; then
101-
curl -L https://github.com/ocaml/ocaml/commit/c8ee39b320207717135d88cad67fb65d0901d6b6.patch -o pr8858.patch
101+
curl -fsSL https://github.com/ocaml/ocaml/commit/c8ee39b320207717135d88cad67fb65d0901d6b6.patch -o pr8858.patch
102102
patch -p1 -i pr8858.patch
103103
CONFIGURE_SWITCHES="$CONFIGURE_SWITCHES --disable-graph-lib"
104104
fi

.github/scripts/main/opam-bs-cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if [ "$os" = "darwin" ] ; then
1212
os=macos
1313
fi
1414

15-
curl -sL -o $OPAM_LOCAL/bin/opam-bootstrap \
15+
curl -fsSL -o $OPAM_LOCAL/bin/opam-bootstrap \
1616
"https://github.com/ocaml/opam/releases/download/$OPAMBSVERSION/opam-$OPAMBSVERSION-$(uname -m)-$os"
1717
cp -f $OPAM_LOCAL/bin/opam-bootstrap $OPAM_LOCAL/bin/opam
1818
chmod a+x $OPAM_LOCAL/bin/opam

.github/scripts/main/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [[ ! -f $OPAM12 ]]; then
1616
if [ "$RUNNER_OS" = "macOS" ]; then
1717
os="Darwin"
1818
fi
19-
curl -sL "https://github.com/ocaml/opam/releases/download/1.2.2/opam-1.2.2-x86_64-$os" -o $OPAM12
19+
curl -fsSL "https://github.com/ocaml/opam/releases/download/1.2.2/opam-1.2.2-x86_64-$os" -o $OPAM12
2020
chmod +x $OPAM12
2121
fi
2222
export OPAMROOT=/tmp/opamroot

.github/scripts/scripts/hygiene.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [[ $GITHUB_EVENT_NAME = 'pull_request' ]]; then
3232
fi
3333
URL="$OPAM_BIN_URL_BASE$tag/opam-$tag-$platform"
3434
echo "Downloading $URL"
35-
check=$(curl -Ls "$URL" | sha512sum | cut -d' ' -f1)
35+
check=$(curl -fsSL "$URL" | sha512sum | cut -d' ' -f1)
3636
if [[ $check = $sha ]] ; then
3737
echo " as expected ($sha)"
3838
else

0 commit comments

Comments
 (0)