diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-15 13:02:44 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-01-15 18:35:02 +0100 |
commit | 79758570798dd82ab60cdae3f4ae1fa3f48823a1 (patch) | |
tree | 316a0f71b67d6e7870d028c2df69f7d0f76cf8b7 /src/basic/linux | |
parent | syscalls: update tables (diff) | |
download | systemd-79758570798dd82ab60cdae3f4ae1fa3f48823a1.tar.xz systemd-79758570798dd82ab60cdae3f4ae1fa3f48823a1.zip |
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 'src/basic/linux')
-rwxr-xr-x | src/basic/linux/update.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/basic/linux/update.sh b/src/basic/linux/update.sh index 5595736f21..dfc9871c53 100755 --- a/src/basic/linux/update.sh +++ b/src/basic/linux/update.sh @@ -4,9 +4,9 @@ set -eu for i in *.h */*.h; do if [[ $i == 'loadavg.h' ]]; then - curl https://raw.githubusercontent.com/torvalds/linux/master/include/linux/sched/$i -o $i + curl --fail https://raw.githubusercontent.com/torvalds/linux/master/include/linux/sched/$i -o $i else - curl https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/$i -o $i + curl --fail https://raw.githubusercontent.com/torvalds/linux/master/include/uapi/linux/$i -o $i fi sed -i -e 's/__user //g' -e '/^#include <linux\/compiler.h>/ d' $i |