From: nbd Date: Tue, 19 Nov 2013 00:03:34 +0000 (+0000) Subject: scripts/gen-dependencies.sh: prevent zero-length dep.* files from accumulating in... X-Git-Tag: fast2504n-3.10.28-merged~706 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=227b3b2d614c1d034feb85d2de79d7417d33c10e;p=openwrt.git scripts/gen-dependencies.sh: prevent zero-length dep.* files from accumulating in tmp/ Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38860 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh index 889255a167..85962e74b2 100755 --- a/scripts/gen-dependencies.sh +++ b/scripts/gen-dependencies.sh @@ -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