get_confs don't stop on non existing file

This commit is contained in:
Brice Waegeneire 2020-10-13 11:04:04 +02:00
parent a17df0c610
commit 9b2fd607b2

View file

@ -34,7 +34,7 @@ get_confs() {
for conf_file in $(cat "$confs"); do
# XXX: Expand the filenames
for glob in $(awk '/^[[:space:]]*Include/ {print $2}' "$conf_file"); do
realpath --canonicalize-existing --no-symlinks --quiet $glob >> "$confs"
realpath --canonicalize-existing --no-symlinks --quiet $glob >> "$confs" || true
done
done
sort "$confs" | uniq > "$confs"_tmp && mv "$confs"_tmp "$confs"