OSDN Git Service

Fix argument handling in runhat() function
authorChris Dearman <chris@mips.com>
Wed, 16 Feb 2011 20:16:09 +0000 (12:16 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 3 Aug 2011 04:01:20 +0000 (12:01 +0800)
Change-Id: I22fa264a3db516dcbe0cc9109dc20d6c004d3418
Signed-off-by: Raghu Gandham <raghu@mips.com>
envsetup.sh

index fd16f01..58d063f 100644 (file)
@@ -909,10 +909,10 @@ function runhat()
 {
     # process standard adb options
     local adbTarget=""
-    if [ $1 = "-d" -o $1 = "-e" ]; then
+    if [ "$1" = "-d" -o "$1" = "-e" ]; then
         adbTarget=$1
         shift 1
-    elif [ $1 = "-s" ]; then
+    elif [ "$1" = "-s" ]; then
         adbTarget="$1 $2"
         shift 2
     fi