mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
7975857079
curl will save the 404 response page (or another error) if the page download fails, which we never want. Let it error out instead.
11 lines
303 B
Bash
Executable File
11 lines
303 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
cd "$1" && shift
|
|
|
|
curl --fail -L -o syscall-names.text 'https://raw.githubusercontent.com/hrw/syscalls-table/master/syscall-names.text'
|
|
|
|
for arch in "$@"; do
|
|
curl --fail -L -o syscalls-$arch "https://raw.githubusercontent.com/hrw/syscalls-table/master/tables/syscalls-$arch"
|
|
done
|