[Drbd-dev] [PATCH 6/6] crm-fence-peer.sh: Avoid expansion of $have_constraint

Bart Van Assche bart.vanassche at sandisk.com
Tue Jun 14 13:58:40 CEST 2016


This patch avoids that shellcheck reports the following warning:

  warning: The surrounding quotes actually unquote this. Remove or escape them. [SC2027]

Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
---
 scripts/crm-fence-peer.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/crm-fence-peer.sh b/scripts/crm-fence-peer.sh
index bc67259..794cdd4 100755
--- a/scripts/crm-fence-peer.sh
+++ b/scripts/crm-fence-peer.sh
@@ -417,7 +417,7 @@ drbd_peer_fencing()
 			rc=0
 		elif [[ -n "$have_constraint" ]] ; then
 			# if this id already exists, but looks different, we may have lost a shootout
-			echo WARNING "constraint "$have_constraint" already exists"
+			echo WARNING "constraint $have_constraint already exists"
 			# anything != 0 will do;
 			# 21 happend to be "The object already exists" with my cibadmin
 			rc=21
-- 
2.8.4



More information about the drbd-dev mailing list