]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(kernel-modules-extra): remove stray \ before /
authorPavel Valena <pvalena@redhat.com>
Mon, 4 Aug 2025 21:48:59 +0000 (23:48 +0200)
committerLaszlo <laszlo.gombos@gmail.com>
Sat, 6 Sep 2025 11:08:30 +0000 (07:08 -0400)
Fixes grep warning:
```grep: warning: stray \ before /```

Introduced in grep version 3.11.

modules.d/70kernel-modules-extra/module-setup.sh

index 85e2e0ad491aa31e4d22fc6b893ed31345c30b18..c280935682f03d9755d2e2553e6f04cf513292f9 100755 (executable)
@@ -35,7 +35,7 @@ installkernel() {
     # Escape a string for usage as a part of extended regular expression.
     # $1 - string to escape
     re_escape() {
-        printf "%s" "$1" | sed 's/\([.+?^$\/\\|()\[]\|\]\)/\\\0/'
+        printf "%s" "$1" | sed 's/\([.+?^$\\|()\[]\|\]\)/\\\0/'
     }
 
     local cfg