get_confs only store existing files
This commit is contained in:
parent
dc12baa23c
commit
4aa7fb6e09
|
@ -34,7 +34,7 @@ get_confs() {
|
||||||
for conf_file in $(cat "$confs"); do
|
for conf_file in $(cat "$confs"); do
|
||||||
# XXX: Expand the filenames
|
# XXX: Expand the filenames
|
||||||
for glob in $(awk '/^[[:space:]]*Include/ {print $2}' "$conf_file"); do
|
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
|
||||||
done
|
done
|
||||||
sort "$confs" | uniq > "$confs"_tmp && mv "$confs"_tmp "$confs"
|
sort "$confs" | uniq > "$confs"_tmp && mv "$confs"_tmp "$confs"
|
||||||
|
|
Loading…
Reference in a new issue