mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-27 03:21:32 +03:00
Merge pull request #10087 from keszybz/xnox/fix-test-functions
test/test-functions: drop all prefixes
This commit is contained in:
commit
0532f2bb5d
@ -505,9 +505,8 @@ install_execs() {
|
||||
export PKG_CONFIG_PATH=$BUILD_DIR/src/core/
|
||||
systemdsystemunitdir=$(pkg-config --variable=systemdsystemunitdir systemd)
|
||||
systemduserunitdir=$(pkg-config --variable=systemduserunitdir systemd)
|
||||
egrep -ho '^Exec[^ ]*=[^ ]+' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
|
||||
| while read i; do
|
||||
i=${i##Exec*=}; i=${i##[@+\!-]}; i=${i##\!}
|
||||
sed -r -n 's|^Exec[a-zA-Z]*=[@+!-]*([^ ]+).*|\1|gp' $initdir/{$systemdsystemunitdir,$systemduserunitdir}/*.service \
|
||||
| sort -u | while read i; do
|
||||
# some {rc,halt}.local scripts and programs are okay to not exist, the rest should
|
||||
inst $i || [ "${i%.local}" != "$i" ] || [ "${i%systemd-update-done}" != "$i" ]
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user