mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
test: don't ignore non-existent paths in inst_recursive()
The process substitution in the while loop hides errors raised by the find utility, which might (and did), in turn, hide errors in test setup.
This commit is contained in:
parent
072adf2693
commit
eb5d7730e1
@ -2773,6 +2773,10 @@ inst_recursive() {
|
||||
local p item
|
||||
|
||||
for p in "$@"; do
|
||||
# Make sure the source exists, as the process substitution below
|
||||
# suppresses errors
|
||||
stat "$p" >/dev/null || return 1
|
||||
|
||||
while read -r item; do
|
||||
if [[ -d "$item" ]]; then
|
||||
inst_dir "$item"
|
||||
|
Loading…
Reference in New Issue
Block a user