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

Side by Side Diff: platform_tools/barelinux/bin/arm64_download

Issue 239653003: arm64_download script - fix error starting vm twice. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # Copyright 2014 Google Inc. 3 # Copyright 2014 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 8
9 usage() { 9 usage() {
10 cat >&2 <<EOF 10 cat >&2 <<EOF
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 local working_directory="$1" 131 local working_directory="$1"
132 try mkdir -p "$working_directory" || return 132 try mkdir -p "$working_directory" || return
133 133
134 try download_necessary_software_to_dir "$working_directory" || return 134 try download_necessary_software_to_dir "$working_directory" || return
135 135
136 try install_compiler "$working_directory" || return 136 try install_compiler "$working_directory" || return
137 137
138 try install_runtime "$working_directory" || return 138 try install_runtime "$working_directory" || return
139 139
140 try start_arm64_image "$working_directory" || return 140 try start_arm64_image "$working_directory" || return
141
142 try start_arm64_image \
143 "$working_directory" \
144 || return
145 } 141 }
146 142
147 for command in gsutil xz tar md5sum gunzip; do 143 for command in gsutil xz tar md5sum gunzip; do
148 try command -v "$command" > /dev/null || usage || exit 144 try command -v "$command" > /dev/null || usage || exit
149 done 145 done
150 146
151 if [ -z "$1" ] ; then 147 if [ -z "$1" ] ; then
152 usage || exit 148 usage || exit
153 fi 149 fi
154 try arm64_download "$1" 150 try arm64_download "$1"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698