aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gen-dependencies.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-11-19 00:03:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-11-19 00:03:34 +0000
commit13f5ebaf8ed9ef98f10c2c3a554592217e237d82 (patch)
tree34c21ef9a3f8a37c7f65d9b4728af301c36251ec /scripts/gen-dependencies.sh
parent35b6be4a6500952837cf348a86ac3e0d69ac2199 (diff)
downloadupstream-13f5ebaf8ed9ef98f10c2c3a554592217e237d82.tar.gz
upstream-13f5ebaf8ed9ef98f10c2c3a554592217e237d82.tar.bz2
upstream-13f5ebaf8ed9ef98f10c2c3a554592217e237d82.zip
scripts/gen-dependencies.sh: prevent zero-length dep.* files from accumulating in tmp/
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38860
Diffstat (limited to 'scripts/gen-dependencies.sh')
-rwxr-xr-xscripts/gen-dependencies.sh2
1 files changed, 1 insertions, 1 deletions
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