get_confs only store existing files

This commit is contained in:
Brice Waegeneire 2020-10-13 10:58:19 +02:00
parent dc12baa23c
commit 4aa7fb6e09

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 --no-symlinks $glob >> "$confs"
realpath --canonicalize-existing --no-symlinks --quiet $glob >> "$confs"
done
done
sort "$confs" | uniq > "$confs"_tmp && mv "$confs"_tmp "$confs"