Fix finddeps: deduplicate outputs

This was causing weird heisenbugs.
This commit is contained in:
Nero 2018-01-29 19:43:06 +00:00 committed by Nero
parent 8f1f80bea3
commit ca830706ac

View File

@ -8,4 +8,4 @@ search() {
for i in $deps; do search $i; done for i in $deps; do search $i; done
} }
search "$1"|grep -v "$1"|sed 's|\.c$|.o|' search "$1"|sort -u|grep -v "$1"|sed 's|\.c$|.o|'