mirror of
https://github.com/systemd/systemd
synced 2024-10-14 20:17:52 +00: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
|
local p item
|
||||||
|
|
||||||
for p in "$@"; do
|
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
|
while read -r item; do
|
||||||
if [[ -d "$item" ]]; then
|
if [[ -d "$item" ]]; then
|
||||||
inst_dir "$item"
|
inst_dir "$item"
|
||||||
|
|
Loading…
Reference in a new issue