Blame SOURCES/0001-Fix-syntax-error-in-if-statement-related-to-mpath-fl.patch

39359f
From e946e403b434d27c88dc7819fb3589419cdfd954 Mon Sep 17 00:00:00 2001
39359f
From: David Sommerseth <davids@redhat.com>
39359f
Date: Fri, 22 Apr 2016 18:58:08 +0200
39359f
Subject: [PATCH] Fix syntax error in if-statement related to mpath flush
39359f
 operation
39359f
39359f
Without this patch, the error "[-x: command not found" would be seen
39359f
when running 'rescan-scsi-bus.sh -f' on a system with multipath support
39359f
packages installed.
39359f
---
39359f
 scripts/rescan-scsi-bus.sh | 2 +-
39359f
 1 file changed, 1 insertion(+), 1 deletion(-)
39359f
39359f
diff --git a/scripts/rescan-scsi-bus.sh b/scripts/rescan-scsi-bus.sh
39359f
index 4468cd3..caa031f 100644
39359f
--- a/scripts/rescan-scsi-bus.sh
39359f
+++ b/scripts/rescan-scsi-bus.sh
39359f
@@ -1090,7 +1090,7 @@ declare -i updated=0
39359f
 declare -i rmvd=0
39359f
 
39359f
 if [ -n "$flush" ] ; then
39359f
-  if [-x $MULTIPATH ] ; then
39359f
+  if [ -x $MULTIPATH ] ; then
39359f
     flushmpaths 1
39359f
   fi
39359f
 fi
39359f
-- 
39359f
1.8.3.1
39359f