scripts/gen-dependencies.sh: prevent zero-length dep.* files from accumulating in...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Nov 2013 00:03:34 +0000 (00:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Nov 2013 00:03:34 +0000 (00:03 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38860

scripts/gen-dependencies.sh

index 889255a..85962e7 100755 (executable)
@@ -31,5 +31,5 @@ for kmod in `find $TARGETS -type f -name \*.ko`; do
                egrep -a '^depends=' | \
                sed -e 's,^depends=,,' -e 's/,/\n/g' | \
                awk '{ print $1 ".ko" }'
-       rm -f $tmp
 done | sort -u
+rm -f $tmp