Skip to contentSkip to conversation

Missing quotes in script

PATCH New Stefan Berger 1 participant 1 message Jul 3, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Missing quotes in script

Add two missing quotes in the vTPM hotplug script.

xen-unstable.hg/tools/examples/vtpm-common.sh +2 -2
Index: root/xen-unstable.hg/tools/examples/vtpm-common.sh
===================================================================
@@ -310,11 +310,11 @@ function vtpm_remove_instance () {
 
 	instance="0"
 
-	if [ "$uuid != "" ]; then
+	if [ "$uuid" != "" ]; then
 		instance=$(vtpmdb_find_instance $uuid)
 	fi
 
-	if [ "$instance == "0" ]; then
+	if [ "$instance" == "0" ]; then
 		domname=$(xenstore_read "$XENBUS_PATH"/domain)
 		instance=$(vtpmdb_find_instance $domname)
 	fi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel