mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +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.
8 lines
218 B
Bash
Executable File
8 lines
218 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
cd "$1"
|
|
|
|
(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
|