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:
Родитель
f183fe4f09
Коммит
9689aef196
|
@ -5,7 +5,7 @@
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
if [ $# -gt 0 ] ; then
|
if [ $# -gt 0 ] ; then
|
||||||
INTENT_ARGS="-d $1" # e.g. a URL
|
INTENT_ARGS='-d "$1"' # e.g. a URL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
adb shell am start \
|
adb shell am start \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче