aboutsummaryrefslogtreecommitdiffstats
path: root/kmod.prov
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-04 17:42:23 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-04 17:42:23 +0000
commiteb113e88fddd49d75d1a1121d05cc038d53c32ab (patch)
treecf694a38464f74658ede1442b284d0c69830bf15 /kmod.prov
parente96f116db68a31a26548af32e68e9d04815d838a (diff)
downloadrpm-setup-eb113e88fddd49d75d1a1121d05cc038d53c32ab.tar
rpm-setup-eb113e88fddd49d75d1a1121d05cc038d53c32ab.tar.gz
rpm-setup-eb113e88fddd49d75d1a1121d05cc038d53c32ab.tar.bz2
rpm-setup-eb113e88fddd49d75d1a1121d05cc038d53c32ab.tar.xz
rpm-setup-eb113e88fddd49d75d1a1121d05cc038d53c32ab.zip
do not process empty dkms list
Diffstat (limited to 'kmod.prov')
-rwxr-xr-xkmod.prov2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmod.prov b/kmod.prov
index 2ea435b..154ffd1 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -12,7 +12,7 @@ if (/^srcversion:/) {
}
'
dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
-echo $dkmslist | while read d; do
+[ -n "$dkmslist" ] && echo $dkmslist | while read d; do
BUILT=`sed -rne 's/^BUILT_MODULE_NAME\[[0-9]+\]="?([^"]+)"?$/kmod(\1)/;T;p' $d`
if [ -n "$BUILT" ]; then
echo "$BUILT"