summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-01-15 13:02:44 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-01-15 18:35:02 +0100
commit79758570798dd82ab60cdae3f4ae1fa3f48823a1 (patch)
tree316a0f71b67d6e7870d028c2df69f7d0f76cf8b7 /tools
parentcfe01f7e0ffdcda48d973239342cc67db0ec82f5 (diff)
downloadsystemd-79758570798dd82ab60cdae3f4ae1fa3f48823a1.tar.gz
tree-wide: use curl --fail
curl will save the 404 response page (or another error) if the page download fails, which we never want. Let it error out instead.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/autosuspend-update.sh2
-rwxr-xr-xtools/hwdb-update.sh14
-rwxr-xr-xtools/syscall-table-update.sh4
3 files changed, 10 insertions, 10 deletions
diff --git a/tools/autosuspend-update.sh b/tools/autosuspend-update.sh
index a4f99eb6b3..0e93eab720 100755
--- a/tools/autosuspend-update.sh
+++ b/tools/autosuspend-update.sh
@@ -3,5 +3,5 @@ set -eu
cd "$1"
-(curl -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
+(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
| base64 -d > gen_autosuspend_rules.py
diff --git a/tools/hwdb-update.sh b/tools/hwdb-update.sh
index 39efd75192..42251612dd 100755
--- a/tools/hwdb-update.sh
+++ b/tools/hwdb-update.sh
@@ -15,13 +15,13 @@ if [ "${2:-}" != "-n" ]; then (
[ -z "$permissive" ] || set +e
set -x
- curl -L -o usb.ids 'http://www.linux-usb.org/usb.ids'
- curl -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids'
- curl -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt'
- curl -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt'
- curl -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt'
- curl -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export'
- curl -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export'
+ curl --fail -L -o usb.ids 'http://www.linux-usb.org/usb.ids'
+ curl --fail -L -o pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids'
+ curl --fail -L -o ma-large.txt 'http://standards-oui.ieee.org/oui/oui.txt'
+ curl --fail -L -o ma-medium.txt 'http://standards-oui.ieee.org/oui28/mam.txt'
+ curl --fail -L -o ma-small.txt 'http://standards-oui.ieee.org/oui36/oui36.txt'
+ curl --fail -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export'
+ curl --fail -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export'
) fi
set -x
diff --git a/tools/syscall-table-update.sh b/tools/syscall-table-update.sh
index 15b7792c53..e270246202 100755
--- a/tools/syscall-table-update.sh
+++ b/tools/syscall-table-update.sh
@@ -3,8 +3,8 @@ set -eu
cd "$1" && shift
-curl -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'
+curl --fail -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'
for arch in "$@"; do
- curl -L -o syscalls-$arch "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch"
+ curl --fail -L -o syscalls-$arch "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch"
done