aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"