OLD | NEW |
---|---|
(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
| |
OLD | NEW |