Fix argument handling in runhat() function
Change-Id: I22fa264a3db516dcbe0cc9109dc20d6c004d3418 Signed-off-by: Raghu Gandham <raghu@mips.com>
This commit is contained in:
committed by
Raghu Gandham
parent
dffd40587a
commit
f0bcf429d9
@@ -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
|
||||
|
Reference in New Issue
Block a user