Harald Hoyer 3610a1
From 07e413bd0f2cb0578a28c3137f92b491c063f826 Mon Sep 17 00:00:00 2001
Harald Hoyer 3610a1
From: Harald Hoyer <harald@hoyer.xyz>
Harald Hoyer 3610a1
Date: Mon, 18 Dec 2017 11:29:17 +0100
Harald Hoyer 3610a1
Subject: [PATCH] Merge pull request #334 from FloGa/master
Harald Hoyer 3610a1
Harald Hoyer 3610a1
Use pattern matching function
Harald Hoyer 3610a1
---
Harald Hoyer 3610a1
 modules.d/99fs-lib/fs-lib.sh | 2 +-
Harald Hoyer 3610a1
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 3610a1
Harald Hoyer 3610a1
diff --git a/modules.d/99fs-lib/fs-lib.sh b/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer 3610a1
index 5c831558..d39ca1b7 100755
Harald Hoyer 3610a1
--- a/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer 3610a1
+++ b/modules.d/99fs-lib/fs-lib.sh
Harald Hoyer 3610a1
@@ -100,7 +100,7 @@ fsck_drv_com() {
Harald Hoyer 3610a1
     local _ret
Harald Hoyer 3610a1
     local _out
Harald Hoyer 3610a1
 
Harald Hoyer 3610a1
-    if ! strstr "$_fop" "-[ynap]"; then
Harald Hoyer 3610a1
+    if ! strglobin "$_fop" "-[ynap]"; then
Harald Hoyer 3610a1
         _fop="-a ${_fop}"
Harald Hoyer 3610a1
     fi
Harald Hoyer 3610a1
 
Harald Hoyer 3610a1