From 6b1ed94922d2f60f9542bf6d9aa88fed4fb3d9ea Mon Sep 17 00:00:00 2001 From: "leozwang@webrtc.org" Date: Tue, 23 Oct 2012 20:25:25 +0000 Subject: [PATCH] Add device id to adb shell TBR=kjellander BUG= TEST= Review URL: https://webrtc-codereview.appspot.com/923005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2976 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/build/adb_shell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/build/adb_shell.sh b/webrtc/build/adb_shell.sh index 335618897..0b33d5770 100755 --- a/webrtc/build/adb_shell.sh +++ b/webrtc/build/adb_shell.sh @@ -15,7 +15,7 @@ adb_shell () { local RET ADB_LOG ADB_LOG=$(mktemp "${TMPDIR:-/tmp}/adb-XXXXXXXX") - adb shell "$@" ";" echo \$? | tee "$ADB_LOG" + adb "$1" shell "$@" ";" echo \$? | tee "$ADB_LOG" sed -i -e 's![[:cntrl:]]!!g' "$ADB_LOG" # Remove \r. RET=$(sed -e '$!d' "$ADB_LOG") # Last line contains status code. rm -f "$ADB_LOG"