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 809215f..435d887 100755
--- a/kmod.prov
+++ b/kmod.prov
@@ -12,7 +12,7 @@ if (/^srcversion:/) {
}
'
dkmslist=$(echo "$provideslist" | egrep '/usr/src/[^/]*/dkms.conf$')
-[ -n "$dkmslist" ] && echo $dkmslist | while read d; do
+[ -n "$dkmslist" ] && for d in $dkmslist; do
VERSION=`sed -rne 's/^PACKAGE_VERSION="?([^"]+)"?$/\1/;T;p' $d`
[ -z "$VERSION" ] && continue
PACKAGE_NAME=`sed -rne 's/^PACKAGE_NAME="?([^"]+)"?$/\1/;T;p' $d`