Add quotes around command line arg to allow a wider range of URLs.

Without quotes the shell complains when trying to open URLs with shell special
characters including parentheses, single/double quotes etc. (e.g. data URLs)

TEST=adb_run_content_shell "data:text/html,<script>console.log(1);</script>"
BUG=None


Review URL: https://chromiumcodereview.appspot.com/10581025

git-svn-id: http://src.chromium.org/svn/trunk/src/build@143080 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
satish@chromium.org 2012-06-19 23:17:08 +00:00
Родитель f183fe4f09
Коммит 9689aef196
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -5,7 +5,7 @@
# found in the LICENSE file.
if [ $# -gt 0 ] ; then
INTENT_ARGS="-d $1" # e.g. a URL
INTENT_ARGS='-d "$1"' # e.g. a URL
fi
adb shell am start \