Skip to content

Commit 5b81b43

Browse files
committed
efibuild,appsign: Upgrade curl -OL to curl -OLf
Otherwise any temporary network error response file is successfully saved as output.
1 parent cc4b021 commit 5b81b43

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

codesign/appsign.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ downloadcert() {
3333
abort "Unable to find macOS certificate password" "Set MAC_CERTIFICATE_PASSWORD environment variable"
3434
fi
3535

36-
curl -OL "https://github.com/acidanthera/ocbuild/raw/master/codesign/certificate.p12" || abort "Failed to download certificates"
36+
curl -OLf "https://github.com/acidanthera/ocbuild/raw/master/codesign/certificate.p12" || abort "Failed to download certificates"
3737

3838
local pw
3939
pw=$(uuidgen)

efibuild.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ if [ "$(nasm -v)" = "" ] || [ "$(nasm -v | grep Apple)" != "" ]; then
197197
fi
198198
pushd /tmp >/dev/null || exit 1
199199
rm -rf nasm-mac64.zip
200-
curl -OL "https://github.com/acidanthera/ocbuild/raw/master/external/nasm-mac64.zip" || exit 1
200+
curl -OLf "https://github.com/acidanthera/ocbuild/raw/master/external/nasm-mac64.zip" || exit 1
201201
nasmzip=$(cat nasm-mac64.zip)
202202
rm -rf nasm-*
203-
curl -OL -g "https://github.com/acidanthera/ocbuild/raw/master/external/${nasmzip}" || exit 1
203+
curl -OLf -g "https://github.com/acidanthera/ocbuild/raw/master/external/${nasmzip}" || exit 1
204204
unzip -q "${nasmzip}" nasm*/nasm nasm*/ndisasm || exit 1
205205
sudo mkdir -p /usr/local/bin || exit 1
206206
sudo mv nasm*/nasm /usr/local/bin/ || exit 1
@@ -220,10 +220,10 @@ if [ "$(iasl -v)" = "" ]; then
220220
fi
221221
pushd /tmp >/dev/null || exit 1
222222
rm -rf iasl-macosx.zip
223-
curl -OL "https://github.com/acidanthera/ocbuild/raw/master/external/iasl-macosx.zip" || exit 1
223+
curl -OLf "https://github.com/acidanthera/ocbuild/raw/master/external/iasl-macosx.zip" || exit 1
224224
iaslzip=$(cat iasl-macosx.zip)
225225
rm -rf iasl
226-
curl -OL -g "https://github.com/acidanthera/ocbuild/raw/master/external/${iaslzip}" || exit 1
226+
curl -OLf -g "https://github.com/acidanthera/ocbuild/raw/master/external/${iaslzip}" || exit 1
227227
unzip -q "${iaslzip}" iasl || exit 1
228228
sudo mkdir -p /usr/local/bin || exit 1
229229
sudo mv iasl /usr/local/bin/ || exit 1
@@ -261,7 +261,7 @@ if ! $valid_mtoc; then
261261
prompt "Install prebuilt mtoc automatically?"
262262
pushd /tmp >/dev/null || exit 1
263263
rm -f mtoc ocmtoc-${MTOC_LATEST_VERSION}-RELEASE.zip
264-
curl -OL -g "https://github.com/acidanthera/ocmtoc/releases/download/${MTOC_LATEST_VERSION}/ocmtoc-${MTOC_LATEST_VERSION}-RELEASE.zip" || exit 1
264+
curl -OLf -g "https://github.com/acidanthera/ocmtoc/releases/download/${MTOC_LATEST_VERSION}/ocmtoc-${MTOC_LATEST_VERSION}-RELEASE.zip" || exit 1
265265
unzip -q "ocmtoc-${MTOC_LATEST_VERSION}-RELEASE.zip" mtoc || exit 1
266266
sudo mkdir -p /usr/local/bin || exit 1
267267
sudo rm -f /usr/local/bin/mtoc /usr/local/bin/mtoc.NEW || exit 1

0 commit comments

Comments
 (0)