multipath-shutdown: fix shell syntax

seems like a misplaced $()
master
Harald Hoyer 2018-08-13 11:37:44 +02:00
parent 0a80cda0ea
commit 26aea0299a
1 changed files with 1 additions and 1 deletions

View File

@ -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