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:
Frantisek Sumsal 2022-11-07 11:55:29 +01:00
parent 072adf2693
commit eb5d7730e1

View file

@ -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"