replace commands parsing ls output with shell glob

Signed-off-by: Maurice Zhou <jasper@apvc.uk>
This commit is contained in:
Maurice Zhou
2021-09-19 09:12:02 +08:00
committed by George Melikov
parent d1e8fad976
commit e34ace390b
6 changed files with 28 additions and 15 deletions

View File

@@ -97,7 +97,7 @@ System Configuration
#. Build ZFS modules::
ls -1 /lib/modules \
| while read kernel_version; do
for directory in /lib/modules/*; do
kernel_version=$(basename $directory)
dkms autoinstall -k $kernel_version
done
done