summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgeneratemodlist.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/generatemodlist.sh b/generatemodlist.sh
index 33ed690..cf95d59 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 | tr '\n' ' ' | sed 's/\.ko\.zst//g' > mod_list.txt
+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