[Drbd-dev] [PATCH 4/6] crm-fence-peer.sh: Fix a typo
Bart Van Assche
bart.vanassche at sandisk.com
Tue Jun 14 13:56:56 CEST 2016
Compare $i with 0 instead of assigning 0 to $i in an if-test.
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 67f3457..1eac65a 100755
--- a/scripts/crm-fence-peer.sh
+++ b/scripts/crm-fence-peer.sh
@@ -773,7 +773,7 @@ set_states_from_proc_drbd()
[[ $pdsk != UpToDate ]] && DRBD_pdsk_all_uptodate=false
let i++
done
- if (( i = 0 )) ; then
+ if (( i == 0 )) ; then
DRBD_pdsk_all_uptodate=false
DRBD_disk_all_uptodate=false
DRBD_disk_all_consistent=false
--
2.8.4
More information about the drbd-dev
mailing list