From 372d9fd4f3ee69b1f45b3f2236a7c0f008d28b38 Mon Sep 17 00:00:00 2001 From: agrieve Date: Tue, 2 Jun 2015 20:26:20 -0700 Subject: [PATCH] Fix regression in adb_*_command_line commands caused by c481d677 The "cut" should run on the host rather than the client. Android M preview includes "cut", so this slipped through :S. BUG=493878 Review URL: https://codereview.chromium.org/1153343007 Cr-Original-Commit-Position: refs/heads/master@{#332544} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 7ce7cf307644d8309740a204689c6642f2153e2b --- android/adb_command_line_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/adb_command_line_functions.sh b/android/adb_command_line_functions.sh index 8a7700911..7ea98b09b 100755 --- a/android/adb_command_line_functions.sh +++ b/android/adb_command_line_functions.sh @@ -24,7 +24,7 @@ function set_command_line() { if [ $# -eq 0 ] ; then # If nothing specified, print the command line (stripping off "chrome ") - adb shell "cat $CMD_LINE_FILE 2>/dev/null | cut -d ' ' -s -f2-" + adb shell "cat $CMD_LINE_FILE 2>/dev/null" | cut -d ' ' -s -f2- elif [ $# -eq 1 ] && [ "$1" = '' ] ; then # If given an empty string, delete the command line. set -x