Merge "Fix argument handling in runhat() function"

This commit is contained in:
Ying Wang 2011-03-31 14:54:24 -07:00 committed by Android Code Review
commit 4c401b1aab
1 changed files with 2 additions and 2 deletions

View File

@ -907,10 +907,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