]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
multipath-shutdown: fix shell syntax
authorHarald Hoyer <harald@redhat.com>
Mon, 13 Aug 2018 09:37:44 +0000 (11:37 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 13 Aug 2018 14:30:25 +0000 (16:30 +0200)
seems like a misplaced $()

modules.d/90multipath/multipath-shutdown.sh

index 47e9990c6a76f9c355839bff5d6618e4afa16fac..f160f45ed1d7d174913114a7fd2993367224d05d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 for i in $(multipath -l -v1); do
-    if ! $(dmsetup table $i | sed -n '/.*queue_if_no_path.*/q1') ; then
+    if ! dmsetup table $i | sed -n '/.*queue_if_no_path.*/q1' ; then
         dmsetup message $i 0 fail_if_no_path
     fi
 done