Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: bin/cros_check_chrome_version

Issue 4942001: Add option to check version of Chrome on target. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Add more checking Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | bin/cros_run_vm_test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Returns the version of Chrome running on a remote machine.
8
9 . "$(dirname $0)/../common.sh"
10 . "$(dirname $0)/../remote_access.sh"
11
12 FLAGS "$@" || exit 1
13
14 set -e
15
16 # TMP necessary for remote_access_init.
17 TMP=$(mktemp -d /tmp/cros_check_chrome_version.XXXX)
18 trap "rm -rf ${TMP}" EXIT
19
20 remote_access_init &> /dev/null
21
22 remote_sh "/opt/google/chrome/chrome --version"
23 CHROME_VERSION=$(echo ${REMOTE_OUT} | \
24 sed 's/.* \([0-9]\+.[0-9]\+.[0-9]\+.[0-9]\+\).*/\1/')
25 echo "${CHROME_VERSION}"
kmixter1 2010/11/15 22:14:02 Since this file doesn't really check it, but rathe
OLDNEW
« no previous file with comments | « no previous file | bin/cros_run_vm_test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698