1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-03 05:18:09 +03:00

test: drop whitespace after shell redirection operators

(The one case that is left unchanged is '< <(subcommand)'.)

This way, the style with no gap was already dominant. This way, the reader
immediately knows that ' < ' is a comparison operator and ' << ' is a shift.

In a few cases, replace custom EOF replacement by just EOF. There is no point
in using someting like "_EOL" unless "EOF" appears in the text.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-02-05 21:41:24 +01:00
parent ecf4be2952
commit 7a17e41dcf
38 changed files with 91 additions and 91 deletions

View File

@ -29,9 +29,9 @@ trap cleanup EXIT
build_integrity_tab()
{
cat << _EOL > "/etc/integritytab"
cat <<EOF >"/etc/integritytab"
${DM_NAME} ${loop} - integrity-algorithm=$1
_EOL
EOF
}
image_dir="$(mktemp -d -t -p / integrity.tmp.XXXXXX)"

View File

@ -7,11 +7,11 @@ cd "${1:?}"
(curl --fail -L 'https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py?format=TEXT'; echo) \
| base64 -d >tools/chromiumos/gen_autosuspend_rules.py
(cat <<%EOF
(cat <<EOF
# This file is part of systemd.
#
# Rules to autosuspend known fingerprint readers (pulled from libfprint).
#
%EOF
EOF
curl --fail -L 'https://gitlab.freedesktop.org/libfprint/libfprint/-/raw/master/data/autosuspend.hwdb') \
>hwdb.d/60-autosuspend-fingerprint-reader.hwdb