diff --git a/finddeps.sh b/finddeps.sh index 7b3f986..0b3e0a8 100755 --- a/finddeps.sh +++ b/finddeps.sh @@ -8,4 +8,4 @@ search() { 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|'