commit | 4c401b1aabf5ad09c152d5e308bb13124c0a2d24 | [log] [tgz] |
---|---|---|
author | Ying Wang <wangying@android.com> | Thu Mar 31 14:54:24 2011 -0700 |
committer | Android Code Review <code-review@android.com> | Thu Mar 31 14:54:24 2011 -0700 |
tree | 4a6c85266a427b29f3afe8eb53fe965791347606 | |
parent | dffd40587aff00c6852d64f5d7ed20d588bb993e [diff] | |
parent | f0bcf429d97ea5a7a6076a2fcd7835c353710e90 [diff] |
Merge "Fix argument handling in runhat() function"
diff --git a/envsetup.sh b/envsetup.sh index 7ca0e3a..cefe8ba 100644 --- a/envsetup.sh +++ b/envsetup.sh
@@ -907,10 +907,10 @@ { # 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