[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/fence/agents/scsi scsi_reserve



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	rohara sourceware org	2006-11-29 16:47:34

Modified files:
	fence/agents/scsi: scsi_reserve 

Log message:
	Variable must be quoted in conditional statement.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/scsi/scsi_reserve.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.6.2&r2=1.1.6.3

--- cluster/fence/agents/scsi/scsi_reserve	2006/11/27 23:41:05	1.1.6.2
+++ cluster/fence/agents/scsi/scsi_reserve	2006/11/29 16:47:34	1.1.6.3
@@ -27,7 +27,7 @@
 
 # if no scsi devices were found we can exit now
 #
-[ -z $scsi_devices ] && exit 0
+[ -z "$scsi_devices" ] && exit 0
 
 # get the node name and node addr from cman
 #
@@ -123,7 +123,7 @@
   fi
 done
 
-if [ -z $devices ]; then
+if [ -z "$devices" ]; then
     echo "No devices resgistered."
 else
     echo "Found ${#devices[ ]} registered device(s):"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]