diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-17 21:59:38 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-17 21:59:38 +0000 |
commit | a03c3d75111333c6f34ee8e6c2f3bac3208f4a13 (patch) | |
tree | 6e14c76461c80dbb31a90dacbecc47639a65375c /chrome | |
parent | 7ebeec46523b85d888364b9c2341339157d7c2ef (diff) | |
download | chromium_src-a03c3d75111333c6f34ee8e6c2f3bac3208f4a13.zip chromium_src-a03c3d75111333c6f34ee8e6c2f3bac3208f4a13.tar.gz chromium_src-a03c3d75111333c6f34ee8e6c2f3bac3208f4a13.tar.bz2 |
Minor change to keystone_install.sh: use "${!array[@]}" syntax to list
indices.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2820015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rwxr-xr-x | chrome/installer/mac/keystone_install.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/installer/mac/keystone_install.sh b/chrome/installer/mac/keystone_install.sh index cbbcad8..8ec43059 100755 --- a/chrome/installer/mac/keystone_install.sh +++ b/chrome/installer/mac/keystone_install.sh @@ -327,16 +327,16 @@ is_ksadmin_version_ge() { "${BASH_REMATCH[4]}") local i - for i in 0 1 2 3; do + for i in "${!check_components[@]}"; do local check_component="${check_components[${i}]}" local ksadmin_component="${ksadmin_components[${i}]}" if [[ ${ksadmin_component} -lt ${check_component} ]]; then - # ksadmin_version is less than check_version + # ksadmin_version is less than check_version. return 1 fi if [[ ${ksadmin_component} -gt ${check_component} ]]; then - # ksadmin_version is greater than check_version + # ksadmin_version is greater than check_version. return 0 fi done |