diff options
author | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-07-08 23:36:33 +0300 |
---|---|---|
committer | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-07-08 23:36:33 +0300 |
commit | 2259a1595116f5206828773514efb8b57f40dd2c (patch) | |
tree | e49b8f0071cc6d838658e021a78cb87a65d044a7 | |
parent | e97722a1b23b1a49e056573d19b8e03f2f6250a1 (diff) | |
download | linux_kernel_scripts-2259a1595116f5206828773514efb8b57f40dd2c.tar.gz linux_kernel_scripts-2259a1595116f5206828773514efb8b57f40dd2c.tar.zst |
-rwxr-xr-x | generatemodlist.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generatemodlist.sh b/generatemodlist.sh index cf95d59..9e1b6cc 100755 --- a/generatemodlist.sh +++ b/generatemodlist.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -find /usr/lib/modules/$1/ -type f | grep -i '\.ko\.zst' | xargs basename -a | sed -z "s/\n/ /g;s/\.ko\.zst//g" > mod_list.txt +find /usr/lib/modules/$1/ -type f -name '*.ko.zst' | xargs basename -a | sed -z "s/\n/ /g;s/\.ko\.zst//g" > mod_list.txt |